Difference between revisions of "$isid"
From Scriptwiki
m (added to category custom identifiers) |
|||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
[[var]] %i = [[$chan]](0) | [[var]] %i = [[$chan]](0) | ||
[[While_loops|while]] (%i) { | [[While_loops|while]] (%i) { | ||
− | var %chans = $addtok(%chans,$chan(%i),44) | + | var %chans = [[$addtok]](%chans,$chan(%i),44) |
− | dec %i | + | [[dec]] %i |
} | } | ||
− | return %chans | + | [[return]] %chans |
} | } | ||
− | [[Category:Remote Identifiers]][[Category:Aliases]] | + | [[Category:Remote Identifiers]] |
+ | [[Category:Aliases]] | ||
+ | [[Category:Custom Identifiers]] |
Latest revision as of 08:15, 29 June 2007
Returns $true if the alias was called as an identifer, otherwise will return $false.
$isid
Example
alias chans { if (!$isid) { echo $color(info) -ag Can not call /chans, this alias must be called like $chans } var %i = $chan(0) while (%i) { var %chans = $addtok(%chans,$chan(%i),44) dec %i } return %chans }