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

(Created page with "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...")
(No difference)

Revision as of 08:52, 16 December 2013

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 is not set or if a file doesn't exist when checked via the $exists() identifier. The $false identifier is most commonly used in conjunction with conditional statements.

When $false is negated via the ! negation operator, it becomes $true.

Example

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!
}

See also