Specifications
Section 10. CRBASIC Programming Instructions
10-18
<<
Bit shift left
Syntax
Variable = Numeric Expression >> Amount
>>
Bit shift right
Syntax
Variable = Numeric Expression >> Amount
10.6.2 Logical Operators
AND
Used to perform a logical conjunction on two expressions.
Syntax
result = expr1 And expr2
NOT
Performs a logical negation on an expression.
Syntax
result = NOT expression
OR
Used to perform a logical disjunction on two expressions.
Syntax
result = expr1 Or expr2
XOR
Performs a logical exclusion on two expressions.
Syntax
result = expr1 XOR expr2
IIF
Evaluates a variable or expression and returns one of two results based on the
outcome of that evaluation.
Syntax
Result = IIF(Expression, TrueValue, FalseValue)
IMP
Performs a logical implication on two expressions.
Syntax
result = expression1 IMP expression2
10.6.3 Trigonometric Functions
10.6.3.1 Derived Functions
TABLE 10.6-1 is a list of trigonometric functions that can be derived from
functions intrinsic to CRBASIC.