-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Operations
This page covers basic XCSL operations that can be performed on data. The definitions for these operations are always included with a standard XCS installation.
Each feature will be demonstrated using XCSL literal values, but in practice named constants/functions can be used in place of literals.
For the purpose of demonstration, all literal arithmetic will result in the value: 8
4 + 4
11 - 3
4 * 2
16 / 2
17 % 9
For the purpose of demonstration, all bitwise arithmetic will result in the value: 8
1 << 3
16 >> 1
15 & 8
8 | 0
15 ^ 7
Logical operations always result in True
or False
. For demonstration purposes, the result of all literal operations will be True
.
True && True
True || False
False ^^ True
3 < 5
5 <= 5
7 > 5
6 >= 6
False == False
1 == 1
True != False
1 != 2
For purpose of demonstration, each string operation will result in "Hello User!".
'H' : "ello User!"
"Hello " ++ "User!"