Not Logical Not Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
In the following example, the variable
is set to
. The
condition evaluates the
happy
false
if
condition
, and if the condition is
, the trace() statement sends a string to the
!happy
true
Output panel.
var happy:Boolean = false;
if (!happy) {
trace("don't worry, be happy"); //traces don't worry, be happy
}
The statement traces because
equals
.
!false
true
See also
,
,
!= inequality operator
!== strict inequality operator
&& logical AND
,
,
,
operator
|| logical OR operator
== equality operator
=== strict equality
operator

not logical NOT operator

not expression
Deprecated since Flash Player 5. This operator was deprecated in favor of the
! (logical
operator.
NOT)
Performs a logical NOT (!) operation in Flash Player 4.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
- A variable or other expression that converts to a Boolean value.
expression :
Object
Returns
- The result of the logical operation.
Boolean
See also
! logical NOT operator
Operators
161

Advertisement

Table of Contents
loading

Table of Contents