Setup guide

comparison
[admin@Wandy] interface> :put (10.0.2.3<=2.0.3.10)
false
[admin@Wandy] interface> :put (100000s>27h)
true
[admin@Wandy] interface> :put (60s,1d!=1m,3600s)
false
[admin@Wandy] interface> :put (bridge=routing)
false
[admin@Wandy] interface> :put (yes=false)
false
[admin@Wandy] interface> :put (true=aye)
ERROR: cannot compare if truth value is equal to string
[admin@Wandy] interface>
logical AND, logical OR
[admin@Wandy] interface> :put ((yes && yes) || (yes && no))
true
[admin@Wandy] interface> :put ((no || no) && (no || yes))
false
[admin@Wandy] interface>
bitwise AND, bitwise OR, bitwise XOR
[admin@Wandy] interface> :put (10.16.0.134 & ~255.255.255.0)
0.0.0.134
[admin@Wandy] interface>
shift operators
[admin@Wandy] interface> :put (~((0.0.0.1 << 7) - 1))
255.255.255.128
[admin@Wandy] interface>
Concatenation
[admin@Wandy] interface> :put (1 . 3)
13
[admin@Wandy] interface> :put (1,2 . 3)
1,2,3
[admin@Wandy] interface> :put (1 . 3,4)
13,4
[admin@Wandy] interface> :put (1,2 . 3,4)
1,2,3,4
[admin@Wandy] interface> :put ((1 . 3) + 1)
ERROR: cannot add string to integer number
[admin@Wandy] interface>
Data types
Description
The console can work with several data types. Currently it distinguishes between strings, boolean
values, numbers, time intervals, IP addresses, internal numbers and lists. Currently console tries to
convert any value to the most specific type first, backing up if it fails. This is the order in which
console attempts to convert a value:
• list
• internal number
• number
• IP address
• time