 # Diff of /linuxsampler/trunk/src/scriptvm/examples/expressions.txt

revision 2934 by schoenebeck, Wed Jun 11 13:24:32 2014 UTC revision 2935 by schoenebeck, Sun Jul 10 14:24:13 2016 UTC
# Line 12  on init Line 12  on init
12    message("Relation 3 # 4 -> " & 3 # 4)    message("Relation 3 # 4 -> " & 3 # 4)
13    message("Relation 3 = 4 -> " & 3 = 4)    message("Relation 3 = 4 -> " & 3 = 4)
14
15    message("Bit operation 1 and 2 = " & 1 and 2)    message("Logical operation 1 and 2 = " & 1 and 2)
16    message("Bit operation 1 and 3 = " & 1 and 3)    message("Logical operation 1 and 3 = " & 1 and 3)
17    message("Bit operation 1 and 0 = " & 1 and 0)    message("Logical operation 1 and 0 = " & 1 and 0)
18    message("Bit operation 1 or 2 = " & 1 or 2)    message("Logical operation 1 or 2 = " & 1 or 2)
19    message("Bit operation 1 or 1 = " & 1 or 1)    message("Logical operation 1 or 1 = " & 1 or 1)
20    message("Bit operation 1 or 0 = " & 1 or 0)    message("Logical operation 1 or 0 = " & 1 or 0)
21    message("Bit operation 0 or 0 = " & 0 or 0)    message("Logical operation 0 or 0 = " & 0 or 0)
22
23    message("Bit operation not 1 = " & not 1)    message("Logical operation not 1 = " & not 1)
24    message("Bit operation not 2 = " & not 2)    message("Logical operation not 2 = " & not 2)
25    message("Bit operation not 0 = " & not 0)    message("Logical operation not 0 = " & not 0)
26
27      message("Bitwise operation 1 .and. 2 = " & 1 .and. 2)
28      message("Bitwise operation 1 .and. 3 = " & 1 .and. 3)
29      message("Bitwise operation 1 .and. 0 = " & 1 .and. 0)
30      message("Bitwise operation 1 .or. 2 = " & 1 .or. 2)
31      message("Bitwise operation 1 .or. 1 = " & 1 .or. 1)
32      message("Bitwise operation 1 .or. 0 = " & 1 .or. 0)
33      message("Bitwise operation 0 .or. 0 = " & 0 .or. 0)
34
35      message("Bitwise operation .not. 1 = " & .not. 1)
36      message("Bitwise operation .not. 2 = " & .not. 2)
37      message("Bitwise operation .not. 0 = " & .not. 0)
38      message("Bitwise operation .not. -1 = " & .not. -1)
39
40    message("abs(-3) = " & abs(-3))    message("abs(-3) = " & abs(-3))
41

Legend:
 Removed from v.2934 changed lines Added in v.2935