| @@ 399-403 (lines=5) @@ | ||
| 396 | case 'and': |
|
| 397 | $this->condition[] = '&&';break; |
|
| 398 | case 'show': |
|
| 399 | case 'this': |
|
| 400 | $conditional = implode(' ',$this->condition); |
|
| 401 | $isvalid = (int)(eval("return ({$conditional});")); |
|
| 402 | if ($isvalid) return $this->srcValue; |
|
| 403 | return NULL; |
|
| 404 | case 'then': |
|
| 405 | $conditional = implode(' ',$this->condition); |
|
| 406 | $isvalid = (int)eval("return ({$conditional});"); |
|
| @@ 404-408 (lines=5) @@ | ||
| 401 | $isvalid = (int)(eval("return ({$conditional});")); |
|
| 402 | if ($isvalid) return $this->srcValue; |
|
| 403 | return NULL; |
|
| 404 | case 'then': |
|
| 405 | $conditional = implode(' ',$this->condition); |
|
| 406 | $isvalid = (int)eval("return ({$conditional});"); |
|
| 407 | if ($isvalid) return $opt; |
|
| 408 | return null; |
|
| 409 | case 'else': |
|
| 410 | $conditional = implode(' ',$this->condition); |
|
| 411 | $isvalid = (int)eval("return ({$conditional});"); |
|
| @@ 409-413 (lines=5) @@ | ||
| 406 | $isvalid = (int)eval("return ({$conditional});"); |
|
| 407 | if ($isvalid) return $opt; |
|
| 408 | return null; |
|
| 409 | case 'else': |
|
| 410 | $conditional = implode(' ',$this->condition); |
|
| 411 | $isvalid = (int)eval("return ({$conditional});"); |
|
| 412 | if (!$isvalid) return $opt; |
|
| 413 | break; |
|
| 414 | case 'select': |
|
| 415 | case 'switch': |
|
| 416 | $raw = explode('&',$opt); |
|