Difference between revisions of "$show"

From Scriptwiki
Jump to: navigation, search
 
(missing ))
Line 3: Line 3:
 
== 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. }
 
  }
 
  }

Revision as of 23:15, 27 November 2005

Returns $false if a command is prefixed with a period (.) to make it quiet, otherwise returns $true.

$show

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.