equal(string)

xod/core/equal(string)

Outputs true if `IN1` = `IN2`, and false otherwise
equal(string)
@/equal(string)
Outputs true if `IN1` = `IN2`, and false otherwise
IN1string
IN2string
equal(string)
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, equal(lhs, rhs));
    }
}