decorative banner

Variables


    GoLive features a set of actions that allows you to use variables. You can use variables as input for other scripted actions, replacing settings you would make in the Inspector.

    There are two major uses for assigning values to variables at runtime, which you define with the Set Variable action:

    • You can use variables as pseudo-constants to specify a fixed value for another action.
    • You can dynamically store object properties in variables at runtime and set a cookie to write them to the viewer's hard disk. This is possible for selected properties of the browser window, such as background color.

    To use a variable in a page, you must declare it with the Declare Variable action first. After declaring a variable, you may want to initialize it with the Init Variable action.

Related Subtopics: