Page History
...
Proposition1 | Proposition2 | Result Using AND | Result Using OR |
---|---|---|---|
TRUE | TRUE | 1 (TRUE) | 1 (TRUE) |
TRUE | 0 (FALSE) | 0 (FALSE) | 1 (TRUE) |
FALSE | TRUE | 0 (FALSE) | 1 (TRUE) |
FALSE | FALSE | 0 (FALSE) | 0 (FALSE) |
See also
Bit-wise Operators: BitAnd, BitOr, BitNot, BitXor, Not()
Example
Code Block |
---|
* Only assign PASS a value of 0 if the conditions are met. if (Time GT 63) And (POINTS GE 24) then PASS = 0 end /* D is set to 1 (true). E is set to 1 (true). F is set to 0 (false).*/ A = 4 B = 5 C = 0 D = A GT 3 And B LE 5 E = A And B F = (A Or C) And (B And C) |