From WikiChip
Difference between revisions of "$false mirc/identifiers/-"

m (Bot: Adding a template (template:mIRC identifier list))
(Bot: ac)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''$false''' identifier represents a false [[truth value]] in [[mIRC]]. Typically the $false identifier is returned as result of a request that failed or a negative answer such as when [[$away identifier - mIRC|$away]] is not set or if a file doesn't exist when checked via the [[$exists identifier - mIRC|$exists()]] identifier. The $false identifier is most commonly used in conjunction with [[conditional statements - mIRC|conditional statements]].
+
#REDIRECT [[mirc/identifiers/$false]]
 
 
When $false is negated via the '''!''' negation operator, it becomes [[$true identifier - mIRC|$true]].
 
== Example ==
 
<source lang="mIRC">
 
alias example {
 
  var %foo = $false
 
 
 
  ; check negating $false yield $true
 
  if (!%foo) echo -a % $+ foo is false!
 
 
 
  ; checked against $false
 
  if (%foo == $false) echo -a % $+ foo is false!
 
}
 
</source>
 
 
 
== See also ==
 
* [[List of identifiers - mIRC|List of identifiers]]
 
{{mIRC identifier list}}
 
 
 
[[Category:MIRC identifiers]]
 

Latest revision as of 15:15, 6 January 2016