simlogo1

 

 

 

SimQuest 6.4 help

 

 

LessThanOrEqual

 

When applied to two numbers or to two arrays of numbers, LessThanOrEqual produces either a boolean which indicates whether or not the first of two numbers is less than or equal to the second or an array of booleans indicating whether or not each component of the first array is less than or equal to the corresponding component of the second array, respectively.
It has three variables: in1, in2 and out.

 

Structure (for scalars):

       if in1 <= in2 then out becomes true

       if in1 > in2 then out becomes false

 

Examples:

       1 <= 2 becomes true

       8 <= 7 becomes false

       5 <= 5 becomes true

       (1, 8, 5) <= (2, 7, 5) = (true, false, true)

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011