to-boolean(number)

koadrobot/casts/to-boolean(number)

If Pulse received then return True.
to-boolean(number)
@/to-boolean(number)
If Pulse received then return True.
INnumber
to-boolean(number)
IN
OUT
OUTboolean
To use the node in your project you should have the koadrobot/casts library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD dirtieness disable

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) 
{
    emitValue<output_OUT>(ctx, getValue<input_IN>(ctx) != 0.0);
}