Program notes:
In order to develop a good programming style, moderate comments are indispensable. ASP provides two comment methods.
1. Single quotation marks. The line of text after the single quotation marks is regarded as a comment.
2. rem keyword, the text after REM is regarded as a comment
Assignment statement:
The assignment statement for general variables in ASP is =
The object is assigned using the set statement.
Arithmetic operators:
+ addition
- Subtraction
* Multiplication
/ division
/ integer division
Mod remainder
^ index
Relational operators:
= equal to
<> is not equal to
< less than
> greater than
<= less than or equal to
>= greater than or equal to
IS compares whether variables point to the same object
Logical operators:
1. NOT reverses the logical value
2. AND sum or AND operation
3. OR or operation
4. XOR exclusive OR operation
5. EPV determines whether two expressions are logically equal. If they are the same, the result is true, otherwise it is false.
6. IMP determines whether two expressions are logically related.
String operators
ASP has only one string operator &, which can force two expressions to perform string concatenation.
Variable declaration
Variable declaration must pay attention to:
1. Valid variable names cannot be larger than 255 characters.
2. Variable names must start with a letter
3. Variable names must be unique within the same valid scope.
Variable declaration DIM variable name
Constant declaration CONST constant name = constant value