Logical multiplication (AND) (For modes 2D, 3D, Console)
Logical conjunction 'and', logical multiplication. Use the AND operator between two conditions when you want the resulting condition to be true in the case both original conditions are true.
Resulting expression is true, if all subexpressions are true. Evaluation goes from the first expression to the last one. When some subexpression is evaluated as false, evaluation of the remaining subexpressions is stopped and resulting value is also false. This is called "short-circuit" evaluation.
Was this helpful?
Logical addition (OR) (For modes 2D, 3D, Console)
Logical conjunction 'or', logical addition. Use the OR operator between two conditions when you want the resulting condition to be true in the case at least one of the original condition is true.
Resulting expression is true, if at least one subexpression is true. Evaluation goes from the first expression to the last one. When some subexpression is evaluated as true, evaluation of the remaining subexpressions is stopped and resulting value is also true. This is called "short-circuit" evaluation.
Was this helpful?
Logical negation (NOT) (For modes 2D, 3D, Console)
Functions as logical unary minus. Changes true operand to false and vice versa.
NOT operator reverts the value of the condition following it. When you use this operator before the condition, this condition will be true when the original condition is false.
Was this helpful?
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.
Was this helpful?
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.
Was this helpful?
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.
Was this helpful?
Ones complement (For modes 2D, 3D, Console)
Defined for all integer type values. Causes inversion of all bits in the number.
Was this helpful?


Did you find this information useful?
Documentation of SGP Baltie 4 C#
Send us comments on this topic by this form ©1978-2010 SGP Systems

Parent page | Previous page | Next page