Set Value

  • Create a new variable and set its value; or

  • Set the value of an existing variable

  1. Enter the name of the variable (new or existing) to which you want to assign a value

    • If you want to create a new variable, type the name of the new variable

    • If the variable already exists, choose the name of the variable from the drop-down list

  2. Set the value of the variable you have specified

    • You can include free text and/or values copied from different variables

    • <Enter> <Space> and/or <Tab> can be used

    • To include the value of a different variable, indicate its name by typing it between dollar signs (e.g., $MyVar$)

Create "special character" variables to use later in other Advanced Commands

To use <Enter> <Space> or <Tab> in other Advanced Commands, it's a great idea to create variables for these special characters up front:

  • Create a variable named Enter, and set its value to <Enter>

  • Create a variable named Space, and set its value to <Space>

  • Create a variable named Tab, and set its value to <Tab>

  • Create a variable named Empty, and set its value to <Nothing> (i.e., no character)

You'll find these special variables especially useful when using delimiters (such as in the Split command) or when replacing text (such as in the Replace command).

Example

Build a date string by combining month, day, and year

  1. Set a variable to define the separator character

    Result: separator = /

  2. Set a variable to store the date using the predefined separator character

    Result: date = 08/10/1967