You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

step

The step function is the simplest of filters. When the given value exceeds the threshold, we switch over to the higher value (true).

step

step(a,x)
Returns 0 when (x < a), 1 otherwise.
COPY/// step(a,x)
//
//  Returns 0 when (x < a), 1 otherwise.
//
//      a       threshold value, real
//      x       value, real
//
/// GMLscripts.com/license
{
    return (argument1 >= argument0);
}

Contributors: xot

GitHub: View · Commits · Blame · Raw