1 |
on init |
2 |
declare @s := "foo" & " bar" |
3 |
message(@s) |
4 |
|
5 |
message("4 + 3 is " & 4 + 3) |
6 |
message("10 mod 8 -> " & 10 mod 8) |
7 |
|
8 |
message("Relation 3 < 4 -> " & 3 < 4) |
9 |
message("Relation 3 > 4 -> " & 3 > 4) |
10 |
message("Relation 3 <= 4 -> " & 3 <= 4) |
11 |
message("Relation 3 >= 4 -> " & 3 >= 4) |
12 |
message("Relation 3 # 4 -> " & 3 # 4) |
13 |
message("Relation 3 = 4 -> " & 3 = 4) |
14 |
|
15 |
message("Bit operation 1 and 2 = " & 1 and 2) |
16 |
message("Bit operation 1 and 3 = " & 1 and 3) |
17 |
message("Bit operation 1 and 0 = " & 1 and 0) |
18 |
message("Bit operation 1 or 2 = " & 1 or 2) |
19 |
message("Bit operation 1 or 1 = " & 1 or 1) |
20 |
message("Bit operation 1 or 0 = " & 1 or 0) |
21 |
message("Bit operation 0 or 0 = " & 0 or 0) |
22 |
|
23 |
message("Bit operation not 1 = " & not 1) |
24 |
message("Bit operation not 2 = " & not 2) |
25 |
message("Bit operation not 0 = " & not 0) |
26 |
|
27 |
message("abs(-3) = " & abs(-3)) |
28 |
|
29 |
message("random(-5,5) = " & random(-5,5)) |
30 |
message("random(-5,5) = " & random(-5,5)) |
31 |
message("random(-5,5) = " & random(-5,5)) |
32 |
|
33 |
end on |