greater

xod/core/greater

Outputs true if `IN1` > `IN2`, and false otherwise
greater
@/greater
Outputs true if `IN1` > `IN2`, and false otherwise
IN1number
IN2number
greater
OUT
IN1
IN2
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);
    }
}