is(less-eq)

koadrobot/logics/is(less-eq)

OUT=( L <= R)?T:F
is(less-eq)
@/is(less-eq)
OUT=( L <= R)?T:F
Lnumber
Rnumber
is(less-eq)
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
1010true
510true
105false