$script » History » Revision 3
Revision 2 (Per Amundsen, 08/12/2015 01:06 PM) → Revision 3/6 (Mr. BS, 06/24/2016 10:30 PM)
_Added in 1.9.0_ *$script* Returns the filename for the current running script. ----------------------------------------------------------------------------- *$script(N|filename)* Returns the filename for the Nth loaded script file. If you specify a filename, it returns [[$null]] if the file is not loaded. *Parameters* N|filename - The filename to check, if N = 0 number of filenames, otherwise the Nth filename. *Example* <pre> ; Print number of filename. //echo -ag $script(0) $scripts(0) ; Print the first filename. //echo -ag $script(1) $scripts(1) ; Check if 'example.ini' is loaded. //echo -ag $script(example.ini) $scripts(example.ini) </pre>