$null » History » Version 1
Per Amundsen, 08/06/2015 05:31 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$null* |
||
4 | |||
5 | If a variable is referred to and it does not exist, it returns the value $null. The $null value can be used in comparisons in if-then-else statements to control branching etc. |
||
6 | |||
7 | *Example* |
||
8 | |||
9 | <pre> |
||
10 | ; Check if NonExistingNick is in the current channel. |
||
11 | //if ($nick(#, NonExistingNick) == $null) echo -ag NonExistingNick was not found |
||
12 | </pre> |