@bluman
If it is the ? operator that is the fuzzy one then you can rewrite the statement like:
if (message.getBool())
digitalWrite(message.sensor-1+RELAY_1, true);
else
digitalWrite(message.sensor-1+RELAY_1, false);
The ? operator act like: expression?truepart:falsepart
So if expression is true the it executes the truepart else it executes the falsepart