
451
Example
This handler checks whether the user is pressing the Alt or the Option key and, if so, calls the
handler named
doOptionKey
:
on keyDown
if (the optionDown) then doOptionKey(key)
end keyDown
See also
controlDown
,
commandDown
,
key()
,
keyCode()
,
shiftDown
or
Syntax
logicalExpression1
or
logicalExpression2
Description
Operator; performs a logical OR operation on two or more logical expressions to determine
whether any expression is
TRUE
.
This is a logical operator with a precedence level of 4.
Examples
This statement indicates in the Message window whether at least one of the expressions 1 < 2 and
1 > 2 is
TRUE
:
put (1 < 2) or (1 > 2)
Because the first expression is
TRUE
, the result is 1, which is the numerical equivalent of
TRUE
.
This Lingo checks whether the content of the field cast member named State is either AK or HI
and displays an alert if it is:
if member("State").text = "AK" or member("State").text = "HI" then
alert "You’re off the map!"
end if
See also
and
,
not
organizationName
Syntax
the organizationName
Description
Movie property; contains the company name entered during installation of Director.
This property is available in the authoring environment only. It can be used in a movie in a
window tool that is personalized to show the user’s information.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...