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

Chapter 9. Controlling Information Flow > Initializing Information

Initializing Information

Variables hold information. You can create, change the contents of, and discard variables at any time. When you put information into a variable the first time, it’s called initialization. Initializing a variable in the Actions panel involves using the equals sign (=), which assigns a value to a variable. The variable name goes on the left side of the equals sign and a value goes on the right side. This point is crucial because a = b is not the same as b = a. To help identify variables at the time of initializing, you can use the identifier var. When you put the term var in front of the name of your variable, it becomes clear which part is the variable and which part is the new value, as in the following example:

var myPassword = "hocusPocus";


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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