Assign values using verbose syntax
The logical operators in lingo use the single equal sign "= ".
Set Param To Value
Put Value Into Param
Verbose syntax to assign values more clearly.
Case-insensitive
Because case-insensitive is case-insensitive, note the comparison of strings.
Put"A" = ""
-- 1
Case-sensitive
Lingo is not sensitive in most cases. Only one case is that the property of the property list is case sensitive when strings are used.
PL = ["M": 1, "M": 720]
Verbose syntax and dot syntax cannot be mixed in the same statement
It sounds like nonsense, but it will be written if it is not properly maintained, and no cause of syntax errors can be found.
Set Sprite (1). Visible To true -- Wrong!
Set Visible Of Sprite 1 to true -- Yes
Special features of case
After the case of lingo, you can use "," to separate multiple expressions. In addition, the last otherwise can be added: or not. Recommended and nice looking. -_-B
-- Lingo syntax
Case ( _ Key . Key ) Of
"" : _ Movie . Go ( "Apple" )
" B " , " C " :
_ Movie . Puppettransition ( 99 )
_ Movie . Go ( "Oranges" )
Otherwise : _ Sound . BEEP ()
End case
Special features of repeat
There isRepeat with... in ..Practical, in can be a list and an object.
System Event stepframe
FRame system events include prepareframe, stepframe, enterframe, and exitframe. Only this stepframe is not the system event of frame behavior. It is the event of parent script.
Property in movie script
property is the local variable of behavior or parent script. If you have to write it, writing property AA in movie script will not cause syntax errors or the like. But because movie does not have the me concept, the property in movie script is actually a dead object.