EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 607

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 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...
[ ] (list) 607
>= (greater than or equal to)
Usage
-- Lingo syntax
expression1 >= expression2
// JavaScript syntax
expression1 >= expression2
Description
Comparison operator; compares two expressions and determines whether expression1 is greater
than or equal to
expression2 (TRUE), or whether expression1 is less than expression2
(
FALSE).
This operator can compare strings, integers, floating-point numbers, rects, and points. Be aware
that comparisons performed on rectangles or points are handled as if the terms were lists, with
each element of the first list compared to the corresponding element of the second list.
This is a comparison operator with a precedence level of 1.
[ ] (bracket access)
Usage
-- Lingo syntax
textExpression[chunkNumberBeingAddressed]
textExpression[firstChunk..lastChunk]
Description
Operator; allows a chunk expression to be addressed by number. Useful for finding the nth
chunk in the expression. The chunk can be a word, line, character, paragraph, or other Text cast
member chunk.
Example
This outputs the first word of the third line in the text cast member First Names:
-- Lingo syntax
put(member("First Names").text.line[3].word[1])
// JavaScript syntax
put(member("First Names").getPropRef("line", 1).getProp("word", 1));
[ ] (list)
Usage
[entry1, entry2, entry3, ...]
Description
List operator; specifies that the entries within the brackets are one of four types of lists:
• Unsorted linear lists
• Sorted linear lists
• Unsorted property lists
• Sorted property lists