1.10 class binary_condition

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:

intXPCE integers
numbernumber object
realreal object
functionfunction 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).
See also
chain->sort

1.10.1 Instance variables

binary_condition <-> left: expression
Both operants of the condition.
binary_condition <-> right: expression
Inherits description from: binary_condition-left

1.10.2 Send methods

binary_condition ->initialise: left=expression, right=expression
Create the condition from two expressions. There is no use in creating instances of this class as there is no execution defined for it.