$script » History » Version 1
Per Amundsen, 08/12/2015 01:06 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$script* |
||
4 | |||
5 | Returns the filename for the current running script. |
||
6 | |||
7 | ----------------------------------------------------------------------------- |
||
8 | |||
9 | *$script(N|filename)* |
||
10 | |||
11 | Returns the filename for the Nth loaded script file. If you specify a filename, it returns [[$null]] if the file is not loaded. |
||
12 | |||
13 | *Parameters* |
||
14 | |||
15 | N|filename - The filename to check, if N = 0 number of filenames, otherwise the Nth filename. |
||
16 | |||
17 | *Example* |
||
18 | |||
19 | <pre> |
||
20 | ; Print number of filename. |
||
21 | //echo -ag $scripts(0) |
||
22 | |||
23 | ; Print the first filename. |
||
24 | //echo -ag $scripts(1) |
||
25 | </pre> |