EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Ne (String Inequality)

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 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...
ne (string inequality) 105
Example
The following examples show true and false results:
animals = "cats";
breeds = 7;
trace ("cats" ge "cattle");// output: 0(false)
trace (animals ge "cats");// output: 1(true)
trace ("persons" ge "people");// output: 1(true)
trace (animals ge "Cats");// output: 1(true)
trace (breeds ge "5");// output: 1(true)
trace (breeds ge 7);// output: 1(true)
See also
>= (numeric greater than or equal to)
ne (string inequality)
Availability
Flash Lite 1.0.
Usage
expression1 ne expression2
Operands
expression1, expression2 Numbers, strings, or variables.
Description
Operator (comparison); compares the string representations of expression1 to expression2
and returns
true if expression1 is not equal to expression2; otherwise, it returns false.
Example
The following examples show true and false results:
word = "persons";
figure = "55";
trace ("persons" ne "people");// output: 1(true)
trace ("persons" ne word);// output: 0(false)
trace (figure ne 50 + 5);// output: 0(false)
trace (55.0 ne 55); // output: 0(false)
See also
<> (numeric inequality)

Table of Contents

Related product manuals