|  | Bitwise and (For modes 2D, 3D, Console) | | Conjunction or logical multiplication. |
For logical operands, it behaves like the Logical multiplication (AND), except the "short-circuit" evaluation,
means that every expression is evaluated.
For ordinal operands (integers and chars) it is a binary operator - performs AND operation on every bit pair form the operands, the result is ordinal value.
|
|
|  | Bitwise or (For modes 2D, 3D, Console) | | Disjunction or logical addition. |
For logical operands, it behaves like the Logical addition (OR), except the "short-circuit" evaluation,
means that every expression is evaluated.
For ordinal operands (integers and chars) it is a binary operator - performs AND operation on every bit pair form the operands, the result is ordinal value.
|
|
|  | Exclusive OR - XOR (For modes 2D, 3D, Console) | | Used between two conditions if we want the resulting condition be true only if just one of the conditions is true, no both of them. |
Use the XOR operator between two conditions when you want the resulting condition to be true in the case one and only one of the original condition is true, i. e. first is true, or second is true, but not both.
|
|
|  | Ones complement (For modes 2D, 3D, Console) |  Show exampleHide example | Defined for all integer type values. Causes inversion of all bits in the number. | Save number 128 to variable i. Then writes it to the output window with number originate from negation of every bit of number i and number originate from number i plus negation of every bit of number i. | | |
|
|
Did you find this information useful?
Documentation of SGP Baltie 4 C# Send us comments on this topic by this form
©1978-2010 SGP SystemsParent page | Previous page | Next page |