Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Microsoft® JScript® @set Statement |
Language Reference Version 3 |
Creates variables used with conditional compilation statements.
@set @varname = termThe @set statement syntax has these parts:
Part Description varname Valid JavaScript variable name. Must be preceded by an "@" character at all times. term Zero or more unary operators followed by a constant, conditional compilation variable, or parenthesized expression.
Numeric and Boolean variables are supported for conditional compilation. Strings are not. Variables created using @set are generally used in conditional compilation statements, but can be used anywhere in JavaScript code.The following operators are supported in parenthesized expressions:Examples of variable declarations look like this:
@set @myvar1 = 12 @set @myvar2 = (@myvar1 * 20) @set @myvar3 = @_jscript_version
This works because NaN is the only value not equal to itself.@if (@newVar != @newVar) ...
Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |