@_PowerPC

JScript3.0+Syntax

@_PowerPC

Description

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

Example

Listing 9.7 alerts the user when a Motorola PowerPC processor is used.

Listing 9.7 Detect a Motorola PowerPC Processor
<script language="JScript">
<!-- Hide

@if (@_PowerPC)
  alert("You are using a Motorola PowerPC processor.");
@else
  alert("You are NOT using a Motorola PowerPC 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.