! (logical NOT)
Availability
Flash Lite 1.0.
Usage
!expression
Operands
None.
Description
Operator (logical); inverts the Boolean value of a variable or expression. If
is a
expression
variable with the absolute or converted value of
, the value of
is
. If
true
!expression
false
the expression
evaluates to
, the expression
evaluates to
.
x && y
false
!(x && y)
true
The following expressions show the result of using the
operator:
!
returns
!true
false
returns
!false
true
Example
In the following example, the variable
is set to
. The
condition evaluates the
happy
false
if
condition
, and if the condition is
, the
function sends a string to the
!happy
true
trace()
Output panel.
happy = false;
if (!happy) {
trace("don't worry, be happy");
}
|| (logical OR)
Availability
Flash Lite 1.0.
Usage
expression1 || expression2
Operands
Boolean values or expressions that convert to Boolean values.
expression1, expression2
92
Flash Lite Operators
Need help?
Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?