$script » History » Revision 5
Revision 4 (Per Amundsen, 07/24/2017 01:25 PM) → Revision 5/6 (Per Amundsen, 12/13/2019 06:31 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. *Properties* .ignore - Returns [[$true]] if the loaded script is ignored in the Script Editor, otherwise [[$false]]. *(AdiIRC only)* (AdiIRC only) *Example* <pre> ; Print number of filename. //echo -ag $script(0) ; Print the first filename. //echo -ag $script(1) ; Check if 'example.ini' is loaded. //echo -ag $script(example.ini) </pre>