a
(integer, default: 0): The dividend, or the number to be divided.b
(integer, default: 0): The divisor, or the number to divide by.result
(integer): The remainder after dividing a
by b
.a
input to specify the dividend.b
input to specify the divisor.a
by b
via the result
output.a
input of the MOD node.b
input of the MOD node.result
output is 0, the input number is even. If the result
is 1, the input number is odd.b
is 0, as dividing by zero is undefined. You may want to add a check before the MOD node to handle this case gracefully.b
).b
input is 0, the node will throw an error as division by zero is not allowed. Always ensure that b
is not 0 before using this node.a % b
always returns a value with the same sign as b
.