This topic describes the AScript syntax. AScript is a type of programmable script supported by Application Load Balancer (ALB). You can use AScript to customize forwarding rules.
The following table describes the details of the AScript syntax.
Important Do not use double quotation marks (") in AScript.
Syntax | Description |
Annotation | All annotations must start with a number sign (#). Example: # this is annotation . |
Identifier | Identifiers are case-sensitive. An identifier can contain letters, digits, and underscores (_). It cannot start with a digit. All names of built-in variables, custom variables, built-in functions, and custom functions must comply with the identifier conventions.
|
Data type | String Literal constants: Use a pair of single quotation marks (') to quote a literal constant, for example, 'hello, AScript' . Numeric Literal constants: decimal numbers, for example, 10, -99, or 1.1. Boolean Literal constants: true or false. Dictionary
|
Variable | |
Operator | =: the assignment operator. -: the minus operator. Example: inum = -10 Built-in functions are used to process different types of data. No additional operators are provided. For more information about built-in functions, see AScript functions.
|
Clause | |
Function | |