Class binary_condition is a super class for the various arithmetic condition statements:
< Test binary_condition <-left to be less than binary_condition<-right=< Test binary_condition <-left to be less than or equal to binary_condition<-right= Test binary_condition <-left to be equal to binary_condition<-right>= Test binary_condition <-left to be greater than or equal to binary_condition<-right> Test binary_condition <-left to be greater than binary_condition<-right
These code objects
are almost exclusively used in conditions for if
objects and friends. When executed, the subclasses of binary_condition
evaluates binary_condition<-left
and binary_condition<-right
to a numeric value and compares the two according to the class.
The type-check of a binary_condition is expression. Type
expression is a disjunction of the following types:
int XPCE integers number number object real real object function function object (including @arg1 and class ?)
The following example defines that the pointer should be in the positive part of the coordinate system of the receiving graphical:
and(@event?x > 0, @event?y > 0).
-left