• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Scripting Lingo > Using Variables

Using Variables

A variable is a container for storing information. The act of creating a variable is called declaring the variable. When you declare a variable, you must give it a name. Variable names in Lingo must consist of one or more alphanumeric characters, with no spaces. (They conventionally start with lowercase letters, though this is not technically required.)

The information stored in a variable is called its value. In most cases, you assign a value to a variable when you first declare it. (With global variables—which you’ll read about in a moment—you declare the variable first and assign a value afterward.) Once a value has been assigned to a variable, it may be changed any number of times.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint