A newer version of Max is available. Click here to access the latest version of this document.

>

Is greater than, comparison of two numbers

Description

> takes any given number, compares it to another specified number, and outputs a 1 if the number is greater than the comparison-number or 0 if it is smaller or equal.

Arguments

Name Type Opt Description
initial-comparison-value int or float opt Sets the initial value, to be compared with a number received in the left inlet. A float argument forces a float comparison.

Messages

bang In left inlet: Performs the comparison with the numbers currently stored. If there is no argument, > initially holds 0 for comparison.
int input [int]
In left inlet: If the number is greater than the number in the right inlet, > outputs 1. Otherwise, > outputs 0.
  (inlet1) comparison-value [int]
In right inlet: The number is stored to be compared with a number received in the left inlet.
float input [float]
Converted to int before comparison, unless > has a float argument.
set set-input [int]
The word set followed by a number will set the input number to the object without causing output.

Information for box attributes common to all objects

Output

int: 1 if the number in the left inlet is greater than the number in the right inlet. 0 if the number in the left inlet is less than or equal to the number in the right inlet.

Examples

The number on the left is greater... The number on the left is not greater

See Also

Name Description
!= Compare two numbers, output 1 if they are not equal
< Is less than, comparison of two numbers
<= Is less than or equal to, comparison of two numbers
== Compare two numbers, output 1 if they are equal
>= Is greater than or equal to, comparison of two numbers
Max Basic Tutorial 19: Timing Max Basic Tutorial 19: Timing