next up previous contents index
Next: External object Up: If-element Previous: If-element   Contents   Index


Conditions

Conditions are introduced by a 4-bit value for the type of the condition. After the introduction of the condition follows as a parameter either 0 till 2 subconditions or two subfunctions (see section 21.3.7 on page [*])

The possible conditions are listed in table 14.


Table 14: Introduction for conditions
name introduction description parameter
false 0000 The condition is false. none
true 1111 The condition is true. none
not 0001 The condition is true if and only if the subcondition is false, otherwise it is false. one subcondition
or 0010 The condition is true if and only if at least one of its two subconditions is true, otherwise it is false. two subconditions
and 0011 The condition is true if and only if the two subconditions are true, otherwise it is false. two subconditions
xor 0100 The condition is true if and only if exactly one of the two subconditions is true, otherwise it is false. two subconditions
eqInt 1000 Comparison of two to integers rounded numbers on equality. two subfunctions, as described in section 21.3.7 on page [*]
lo 1001 Comparison, if the first number is less than the second. two subfunctions, as described in section 21.3.7 on page [*]
gr 1010 Comparison, if the first number is greater than the second. two subfunctions, as described in section 21.3.7 on page [*]
  0101 till 0111 and 1011 till 1110 Free for future conditions.  



Example:


next up previous contents index
Next: External object Up: If-element Previous: If-element   Contents   Index
Betti Österholz 2013-02-13