[ ] (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
n
th
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
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...