is(equal)

koadrobot/logics/is(equal)

OUT=( L == R)?T:F
is(equal)
@/is(equal)
OUT=( L == R)?T:F
Lnumber
Rnumber
is(equal)
OUT
L
R
OUTboolean
To use the node in your project you should have the koadrobot/logics 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) {
    Number lhs = getValue<input_L>(ctx);
    Number rhs = getValue<input_R>(ctx);
    emitValue<output_OUT>(ctx, lhs == rhs);
}

Tabular tests

LROUT
10.510.5true
510.5false
10.55false