Module gadgets::util::or

source ·
Expand description

Returns 1 when expr[0] || expr[1] || ... == 1, and returns 0 otherwise. Inputs need to be boolean

Functions§

  • Returns an expression that evaluates to 1 if any expression in the given list is 1. Returns 0 if all the expressions were 0.
  • Returns the value after passing all given values through the OR gate.