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