The following string operators and functions are available:
description | symbol/name | true example expression | comment |
equality | ==, != | "X"=="X", "XMM"!="XTE" | |
relational operators | <, <=, >, >= | "a"<"b", "a"<="b", | lexicographical order |
"b">"a", "b">="a" | |||
change case | upper/lower | upper("Xmm")=="XMM" | |
lower("XMM")=="xmm" | |||
length | strlen | strlen("XMM")==3, | |
strlen("")==0 | |||
ASCII value | ascii | ascii(" ")==32, | |
ascii("Z")-ascii("A")+1==26 | |||
concatenation | + | "Coca-"+"Cola"=="Coca-Cola" | |
range operator | [:], [:hi], | "XMM"[0:1]=="XM" | first character has index 0; |
[lo:], [lo:hi] | "FREDDY"[2:]=="EDDY" | omitted lower/upper bound | |
expands to 0/actual length-1 |
XMM-Newton SOC -- 2023-04-16