$isalias: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Daveoh (talk | contribs)
No edit summary
 
Daveoh (talk | contribs)
mNo edit summary
Line 1: Line 1:
Returns [[$true]] if the specified name is an alias command that exists in your aliases or scripts.
Returns [[$true]] if the specified name is an alias command that exists in your aliases or scripts.
  $isalias(name)
  $isalias(name)
Properties:
* fname - returns the filename in which the alias exists
* alias - returns the alias definition
==Example==
==Example==
  $isalias(op)
  $isalias(join)       returns $true if you have an alias for /join
Returns $true if you have an alias called op.
 
$isalias(join).fname        returns the filename in which the alias exists
 
$isalias(join).alias        returns the alias definition for /join
==See Also==
==See Also==
* [[alias|/alias]]
* [[alias|/alias]]
[[Category:Identifiers]]
[[Category:Identifiers]]

Revision as of 17:45, 8 April 2008

Returns $true if the specified name is an alias command that exists in your aliases or scripts.

$isalias(name)

Properties:

  • fname - returns the filename in which the alias exists
  • alias - returns the alias definition

Example

$isalias(join)        returns $true if you have an alias for /join
$isalias(join).fname        returns the filename in which the alias exists
$isalias(join).alias        returns the alias definition for /join

See Also