|
|
(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>
| |