$ifmatch2 » History » Version 2
Per Amundsen, 08/10/2015 08:44 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$ifmatch2* |
||
| 4 | |||
| 5 | Returns the second parameter of an [[if|if-then-else comparison]]. |
||
| 6 | |||
| 7 | _Same as [[$v2]], see also [[$ifmatch]]._ |
||
| 8 | |||
| 9 | *Example* |
||
| 10 | |||
| 11 | <pre> |
||
| 12 | ; In this case '$ifmatch' will be 'text' and '$ifmatch2' will be 'sometext'. |
||
| 13 | if (text isin sometext) { |
||
| 14 | 2 | Per Amundsen | echo -ag ifmatch2 is $ifmatch2 |
| 15 | 1 | Per Amundsen | } |
| 16 | </pre> |