With bools, bosun has a short circuit like behavior. Since Bosun's expression language does not contain operators, you need to use the bool operation to see if the first divisor is the first:
$foo = 0 $foo && 1/$foo
Since $ foo is zero, the statement is not true, so 1 / $ foo is not taken into account in the final calculation:

source share