Lingo Dictionary > S > set...to, set...= |  |

set...to, set...=

Syntax

    set the lingoProperty to expression
    the lingoProperty = expression
    set variable to expression
    variable = expression

Description

Command; evaluates an expression and puts the result in the property specified by `lingoProperty` or the variable specified by `variable`.

Example

This statement sets the name of member 3 to Sunset:

    set member(3).name = "Sunset"

Example

This statement sets the `soundEnabled` property to the opposite of its current state. When `soundEnabled` is `TRUE` (the sound is on), this statement turns it off. When `soundEnabled` is `FALSE` (the sound is off), this statement turns it on.

    set the soundEnabled = not (the soundEnabled)

Example

This statement sets the variable `vowels` to the string "aeiou":

    set vowels = "aeiou"

See also

`property`