EasyManua.ls Logo

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

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operators 161
Example
In the following example, the variable
happy is set to false. The if condition evaluates the
condition
!happy, and if the condition is true, the trace() statement sends a string to the
Output panel.
var happy:Boolean = false;
if (!happy) {
trace("don't worry, be happy"); //traces don't worry, be happy
}
The statement traces because !false equals 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
NOT)
operator.
Performs a logical NOT (!) operation in Flash Player 4.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
expression : Object - A variable or other expression that converts to a Boolean value.
Returns
Boolean - The result of the logical operation.
See also
! logical NOT operator

Table of Contents

Related product manuals