enum BOTH = 0b11, FIRST = 0b10, SECOND = 0b01, NEITHER = 0b00 function if2(bool c1, bool c2) return c1*2+c2 end function integer r = if2(condition1,condition2) if r=BOTH then elsif r=FIRST then elsif r=SECOND then elsif r=NEITHER then end if