simlogo1

 

 

 

SimQuest 6.4 help

 

 

GreaterThan

 

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

 

Examples:

       2 > 1 becomes true

       3 > 7 becomes false

       5 > 5 becomes false

       (2, 3, 5) > (1, 7, 5) becomes (true, false, false)

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011