Difference between revisions of "$alias"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 13: Line 13:
 
== See Also ==
 
== See Also ==
  
* [[alias|/alias]]
+
* [[alias|/alias]] - creates an alias
 +
* [[$isalias]] - returns $true if an alias exists
  
 
[[Category:File and Directory Identifiers]]
 
[[Category:File and Directory Identifiers]]

Latest revision as of 13:20, 10 May 2008

Returns the filename for the Nth loaded alias file.

$alias(N/filename)

If you specify a filename, it returns $null if the file isn't loaded.

Example

$alias(0)          returns the number of alias files loaded

$alias(2)          returns the filename of the 2nd loaded alias file

$alias(moo.txt)    returns $null if the file isn't loaded, or moo.txt if it is.

See Also

  • /alias - creates an alias
  • $isalias - returns $true if an alias exists