Netxms Scripting Language
Total Page:16
File Type:pdf, Size:1020Kb
NetXMS Scripting Language http://netxms.org/ Version 3.3, 20 January, 2020 Table of Contents Introduction. 1 Script security . 2 Language syntax . 3 Script entry point . 3 Built-in Types . 3 Truth Value Testing . 4 Variables. 4 Function Declaration. 5 Function Arguments . 6 Return Values from a Function . 7 Arrays . 7 Array Initialization . 8 Array conversion . 9 Operators . 9 Arithmetic Operators . 9 Assignment Operator . 9 Bitwise Operators . 9 Comparison Operators . 10 Incrementing/Decrementing Operators. 11 Logical Operators . 11 String Operators . 12 Control structures . 12 if. 13 else . 13 while . 13 do-while . 13 for . 13 break. 14 continue . 14 switch . 14 return . 15 exit. 15 Expressions . 15 Short-circuit evaluation . 16 Regular expressions . 16 Comments . 16 Tutorial . 17 Function Reference . 19 String functions . 19 ArrayToString() . 19 chr(). 19 d2x() . 19 format() . 20 index() . 21 inList() . 21 left(). 22 length(). ..