between

wkov/colony/between

No description
between
@/between
VALnumber
MINnumber
MAXnumber
between
OUT
VAL
MIN
MAX
OUTboolean
To use the node in your project you should have the wkov/colony 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

node {
    void evaluate(Context ctx) {
        auto val = getValue<input_VAL>(ctx);
        auto min = getValue<input_MIN>(ctx);
        auto max = getValue<input_MAX>(ctx);
        emitValue<output_OUT>(ctx, (min <= val && val <= max));
    }
}