equal(number)

xod/core/equal(number)

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