When working with Boolean operators, SmartPart Script interprets 0 as false, while any other number (also if the number is real) is interpreted as true. The value of a logical expression is also integer, i.e., 1 for true and 0 for false. The use of boolean operators with real operands is not recommended, as these can cause precision problems.
Syntax
AND (or &): Logical and (priority 6)
OR (or |): Logical inclusive (priority 7)
EXOR (or @): Logical exclusive (priority 8)
Remarks
In a script Boolean operators are normally used for comparisons, e.g. IF Param_A=10 AND ParamB=20 THEN ...
(C) ALLPLAN GmbH |
Privacy policy |