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

m (bot: correcting title)
(Bot: ac)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{mirc title|/- Identifier}}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 {{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 {{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 14:15, 6 January 2016