Not Logical Not Operator - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
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
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash lite 2

Table of Contents