op_booland

Function op_booland 

Source
pub fn op_booland(stack: &mut Stack) -> bool
Expand description

OP_BOOLAND: Substitutes the two numbers on top of the stack with ONE if they are both non-zero, with ZERO otherwise

Example: OP_BOOLAND([n1, n2]) -> [1] if n1 != 0 and n2 != 0 OP_BOOLAND([n1, n2]) -> [0] if n1 == 0 or n2 == 0

ยงArguments

  • stack - mutable reference to the stack