Difference between revisions of "$show"
From Scriptwiki
m |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | Returns ''$false'' if a command is prefixed with a period (.) to make it quiet, otherwise returns ''$true''. | + | Returns ''[[$false]]'' if a command is prefixed with a period (.) to make it quiet, otherwise returns ''$true''. |
$show | $show | ||
+ | |||
+ | * This function has no parameters. | ||
+ | |||
== Example == | == Example == | ||
+ | |||
[[alias]] deopme { | [[alias]] deopme { | ||
− | [[If-Then-Else|if]] ([[$me]] isop [[$active]] { [[mode]] [[$v2]] -o [[$v1]] } | + | [[If-Then-Else|if]] ([[$me]] isop [[$active]]) { [[mode]] [[$v2]] -o [[$v1]] } |
if ($show) { [[echo]] -ag You have been deoped. } | if ($show) { [[echo]] -ag You have been deoped. } | ||
} | } | ||
In the above example if you call ''.deopme'' it will not echo out locally you have been deopped, where it would if you just call ''deopme''. | In the above example if you call ''.deopme'' it will not echo out locally you have been deopped, where it would if you just call ''deopme''. | ||
− | [[Category: | + | [[Category:Other Identifiers]] |
Latest revision as of 11:26, 12 April 2008
Returns $false if a command is prefixed with a period (.) to make it quiet, otherwise returns $true.
$show
- This function has no parameters.
Example
alias deopme { if ($me isop $active) { mode $v2 -o $v1 } if ($show) { echo -ag You have been deoped. } }
In the above example if you call .deopme it will not echo out locally you have been deopped, where it would if you just call deopme.