Livecode Wiki
Advertisement

A special local variable that is used with commands such as get, read from file, convert, ask, and answer.

Examples:

get the date
put it into field "Date"


Use the it keyword to get the result of certain commands, or as a handy temporary storage place.

The it keyword designates a special local variable. It can be used like any other local variable: you can put a value into it, or put it into another container.

Unlike other local variables, it can change even if you don't explicitly change its value. Certain commands use it to store their result. Therefore, if you need to use the value of it, make sure none of these commands is executed between the time you set it and the time you read its value. If you need to save the value of it for later use, store it in another variable:

 put it into savedFilePath
Advertisement