Actions
$script » History » Revision 2
« Previous |
Revision 2/6
(diff)
| Next »
Per Amundsen, 08/12/2015 01:06 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
; Print number of filename. //echo -ag $scripts(0) ; Print the first filename. //echo -ag $scripts(1) ; Check if 'example.ini' is loaded. //echo -ag $scripts(example.ini)
Updated by Per Amundsen over 9 years ago · 2 revisions