ASP is programmed in VBScript by default, thus ASP's operators is same as VBScript operators by default
Operators in ASP are categorised into four types : 1.Math Operators. 2.Comparisons Operators. 3.Logic operators. 4.String Operators.
In ASP, the mathematical operators are similar to many other programming languages.
However, shortcut operators are not there in ASP like ++, --, +=, etc.
When you want to compare two values to make a decision,comparison operators are used.
Comparison operators are most commonly used like "If...Then"
and " Do this while something is true..." statements, otherwise known as conditional statements.
The items that are most often compared are numbers.
The result of a comparison operator is TRUE or FALSE.
The above comparison operators result in a truth value of TRUE or FALSE.
For complex statements that must make decisions based on one or more of these truth values, a logical operator is used
The only string operator uses the string concatenation operator "&" that takes two strings and slams them together to form a new string.
An example would be string1 = "Rox" and string2 = " is a Hero".
The following code would combine these two strings into one: string3 = string1 & string2
Keywords: comparison operators, concatenation operator, logical operators, vbscript operators variables