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

Invert gmlscripts.pro

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.pro/license
{
    return (argument1 >= argument0);
}

Contributors: xot

GitHub: View · Commits · Blame · Raw