simlogo1

 

 

 

SimQuest 6.4 help

 

 

LessThan

 

When applied to two numbers or to two arrays of numbers, LessThan produces either a boolean which indicates whether or not the first of two numbers is less than the second or an array of booleans indicating whether or not each component of the first array is less than 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

 

Example:

       1 < 2 becomes true

       8 < 7 becomes false

       5 < 5 becomes false

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

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011