>
Description
Compares two values to see if one value is greater than a second. Outputs a 1 if the number is greater than the comparison-number or 0 if it is less than or equal to it.
Examples

The number on the left is greater... The number on the left is not greater
Arguments
initial-comparison-value [number]
Optional
Sets the initial value, to be compared with a number received in the left inlet. A float argument forces a float comparison.
Attributes
Common Box Attributes
Messages
bang
In left inlet: Performs the comparison with the numbers currently stored. If there is no argument, > initially holds for comparison.
int
Arguments
input
[int]
(inlet1)
Arguments
comparison-value
[int]
In right inlet: The number is stored to be compared with a number received in the left inlet.
set
Arguments
set-input
[int]
The word
followed by a number will set the input number to the object without causing output. Output
int
1 if the number in the left inlet is greater than the number in the right inlet.
if the number in the left inlet is less than or equal to the number in the right inlet.See Also
Name | Description |
---|---|
!= | |
< | |
<= | |
== | |
>= | |
Max Basic Tutorial 19: Timing | Max Basic Tutorial 19: Timing |