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

<=~ Reference

Is less than or equal to, comparison of two signals

<=~

Description

<=~ outputs a 1 signal when the left input is less-than or equal-to the right input and a 0 when it is less-than the right input. The right input can be a signal or a float.

Examples

Arguments

initial-comparison-value [number]

Optional

Sets an initial comparison value for the signal coming into the left inlet. 1 is sent out if the signal is less than or equal to the argument; otherwise, 0 is sent out. If a signal is connected to the right inlet, the argument is ignored. If no argument is present, and no signal is connected to the right inlet, the initial value is 0 by default.

Attributes

Common Box Attributes

Messages

int

Arguments

comparison-value [int]
In right inlet: A number to be used for comparison with the signal coming into the left inlet. If a signal is also connected to the right inlet, a float or int is ignored.

float

Arguments

comparison-value [float]
In right inlet: A number to be used for comparison with the signal coming into the left inlet. If a signal is also connected to the right inlet, a float or int is ignored.

signal

In left inlet: The signal is compared to a signal coming into the right inlet, or a constant value received in the right inlet. If it is less-than or equal-to the value in the right inlet, 1 is sent out; otherwise, 0 is sent out.

In right inlet: The signal is used for comparison with the signal coming into the left inlet.

Output

signal

If the signal in the left inlet is less than or equal to the value in the right inlet, 1 is sent out; otherwise, 0 is sent out.

See Also

Name Description
<~
>~
>=~
==~
!=~