August 1999
Intermediate to advanced
1488 pages
72h 53m
English
@set @varName = value
The @set property allows the creation of custom compiled variables. The name of a custom variable must start with an ampersand character. If the variable is used before being defined, its value will be NaN.
Listing 9.13 uses the @set property to create a custom compiled variable called @number and assigns the number 25 to the variable. The variable is then used to display a sentence in the browser.
<script language="JScript"> <!-- Hide //Create a custom compiled variable called @number and set it to 25 @set @number = 25; //Display a sentence in the browser based on the value stored in the //custom compiled variable @number. @if(@number ... |
Read now
Unlock full access