@_alpha

JScript3.0+Syntax

@_alpha

Description

The @_alpha variable is used in conditional compilation to determine if a DEC Alpha processor is being used. When the variable is not true, it is defined as NaN.

Example

Listing 9.1 alerts the user when a DEC Alpha processor is used.

Listing 9.1 Detect a DEC Alpha Processor
<script language="JScript">
<!-- Hide

@if (@_alpha)
  alert("You are using a DEC Alpha processor.");
@else
  alert("You are NOT using a DEC Alpha processor.");
@end

//Hide End -->
</script>
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.