String functions were deprecated, now string methods should be used:
Documentation should be up to date: https://www.netxms.org/documentation/nxsl-latest/#class-string
Code Select
a = "abc";
b = a.right(2);
println(b);
Documentation should be up to date: https://www.netxms.org/documentation/nxsl-latest/#class-string