--- linuxsampler/trunk/src/scriptvm/examples/expressions.txt 2016/07/10 14:05:13 2934 +++ linuxsampler/trunk/src/scriptvm/examples/expressions.txt 2016/07/10 14:24:13 2935 @@ -12,17 +12,30 @@ message("Relation 3 # 4 -> " & 3 # 4) message("Relation 3 = 4 -> " & 3 = 4) - message("Bit operation 1 and 2 = " & 1 and 2) - message("Bit operation 1 and 3 = " & 1 and 3) - message("Bit operation 1 and 0 = " & 1 and 0) - message("Bit operation 1 or 2 = " & 1 or 2) - message("Bit operation 1 or 1 = " & 1 or 1) - message("Bit operation 1 or 0 = " & 1 or 0) - message("Bit operation 0 or 0 = " & 0 or 0) + message("Logical operation 1 and 2 = " & 1 and 2) + message("Logical operation 1 and 3 = " & 1 and 3) + message("Logical operation 1 and 0 = " & 1 and 0) + message("Logical operation 1 or 2 = " & 1 or 2) + message("Logical operation 1 or 1 = " & 1 or 1) + message("Logical operation 1 or 0 = " & 1 or 0) + message("Logical operation 0 or 0 = " & 0 or 0) - message("Bit operation not 1 = " & not 1) - message("Bit operation not 2 = " & not 2) - message("Bit operation not 0 = " & not 0) + message("Logical operation not 1 = " & not 1) + message("Logical operation not 2 = " & not 2) + message("Logical operation not 0 = " & not 0) + + message("Bitwise operation 1 .and. 2 = " & 1 .and. 2) + message("Bitwise operation 1 .and. 3 = " & 1 .and. 3) + message("Bitwise operation 1 .and. 0 = " & 1 .and. 0) + message("Bitwise operation 1 .or. 2 = " & 1 .or. 2) + message("Bitwise operation 1 .or. 1 = " & 1 .or. 1) + message("Bitwise operation 1 .or. 0 = " & 1 .or. 0) + message("Bitwise operation 0 .or. 0 = " & 0 .or. 0) + + message("Bitwise operation .not. 1 = " & .not. 1) + message("Bitwise operation .not. 2 = " & .not. 2) + message("Bitwise operation .not. 0 = " & .not. 0) + message("Bitwise operation .not. -1 = " & .not. -1) message("abs(-3) = " & abs(-3))