less

xod/core/less

Outputs true if `IN1` < `IN2`, and false otherwise
less
@/less
Outputs true if `IN1` < `IN2`, and false otherwise
IN1number
IN2number
less
IN1
IN2
OUT
OUTboolean

C++ implementation

#pragma XOD dirtieness disable

node {
    void evaluate(Context ctx) {
        auto lhs = getValue<input_IN1>(ctx);
        auto rhs = getValue<input_IN2>(ctx);
        emitValue<output_OUT>(ctx, lhs < rhs);
    }
}