greater-byte

nazarijtipusak080/work-with-bit/greater-byte

Outputs true if `IN1` > `IN2`, and false otherwise
greater-byte
@/greater-byte
Outputs true if `IN1` > `IN2`, and false otherwise
IN1byte
IN2byte
greater-byte
OUT
IN1
IN2
OUTboolean
To use the node in your project you should have the nazarijtipusak080/work-with-bit 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) {
        uint8_t lhs = getValue<input_IN1>(ctx);
        uint8_t rhs = getValue<input_IN2>(ctx);
        emitValue<output_OUT>(ctx, lhs > rhs);
    }
}