Not: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
m (moved NOT to Not)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The logical [[Unary operators|unary]] negation operator '''~''' reverses the meaning of its operand. The operand must be numeric. '''Note that in BR, 1 means true and 0 means false'''.
#Redirect:[[~]]
 
The '''~''' operator works as follows:
* The result is true if the converted operand is false
* The result is false if the converted operand is true.
 
The '''~''' operator is equivalent to the '''NOT''' operator, with one difference: ~ works everywhere whereas NOT will only work in If and PRINT statements
 
'''~''' is usually used in conjunction with an [[If]] [[statement]].
 
<noinclude>
[[Category:Operators]]
[[Category:Logical Operators]]
</noinclude>

Latest revision as of 13:57, 13 May 2014

Redirect to: