The Set-Relays Action lets you set the state of mulitple outputs using a channel mask and a states mask. The Channel Mask allows you to select which channels will be set to the given State Mask. The State Mask and Channel Mask accept a binary mask. This can be represented as decimal or hexadecimal. To specify the mask as hexadecimal simple put '0x' before the value. For the example above, the channel mask value of 7 equals three outputs which are 1,2 and 4. 7 is also the hexadecimal 0x07. This is then compared to the state mask value of 5, which equals outputs 1 and 4. Because of this outputs 1 and 4 are activated and output 2 is deactivated.