$isid » History » Version 2
Per Amundsen, 08/10/2015 07:03 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$isid* |
||
4 | |||
5 | Returns [[$true]] if an alias was called as an identifier, otherwise [[$false]]. |
||
6 | |||
7 | *Example* |
||
8 | |||
9 | <pre> |
||
10 | ; Create an alias |
||
11 | 2 | Per Amundsen | alias example [ |
12 | 1 | Per Amundsen | if ($isid) { |
13 | echo -ag Was called as a identifier. |
||
14 | } |
||
15 | else { |
||
16 | echo -ag Was not called as a identifier. |
||
17 | } |
||
18 | } |
||
19 | |||
20 | 2 | Per Amundsen | ; Call 'example' as a alias. |
21 | /example |
||
22 | 1 | Per Amundsen | |
23 | 2 | Per Amundsen | ; call 'example' as a identifier. |
24 | //noop $example |
||
25 | 1 | Per Amundsen | </pre> |