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