has-error

xod/core/has-error

Outputs `True` while the upstream node is in the error state.
has-error
@/has-error
Outputs `True` while the upstream node is in the error state.
INgeneric t1
has-error
IN
OUT
OUTboolean

C++ implementation

#pragma XOD error_catch enable

node {
    void evaluate(Context ctx) {
        if (getError<input_IN>(ctx)) {
            emitValue<output_OUT>(ctx, true);
        } else {
            emitValue<output_OUT>(ctx, false);
        }
    }
}