Lt (String Less Than); Le (String Less Than Or Equal To) - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

lt (string less than)

Availability
Flash Lite 1.0.
Usage
expression1 lt expression2
Operands
,
expression1
expression2
Description
Operator (comparison); compares the string representation of
representation of
expression2
; otherwise, it returns a
expression2
order; digits precede all letters, and all capital letters precede lowercase letters.
Example
The following examples show the output of various string comparisons. In the last line, notice
that
does not return an error when you compare a string to an integer because ActionScript
lt
1.0 syntax tries to convert the integer data type to a string and returns
animals = "cats";
breeds = 7;
trace ("persons" lt "people");// output: 0(false)
trace ("cats" lt "cattle");// output: 1(true)
trace (animals lt "cats");// output: 0(false)
trace (animals lt "Cats");// output: 0(false)
trace (breeds lt "5");// output: 0(false)
trace (breeds lt 7);// output: 0(false)
See also
< (numeric less than)

le (string less than or equal to)

Availability
Flash Lite 1.0.
Usage
expression1 le expression2
106
Flash Lite Operators
Numbers, strings, or variables.
and returns a
value if
true
value. Strings are compared using alphabetical
false
to the string
expression1
is less than
expression1
.
false

Advertisement

Table of Contents
loading

Table of Contents