set

(Copy URL in PhpBB Forum Format - Info)

From iMacros

Jump to: navigation, search

Defines the value of a variable. The SET command supports the built-in variables and !VAR1, !VAR2, !VAR3.

You can use any variable as input for SET, e. g. SET !VAR1 {{myvariable}} or SET !EXTRACT {{!COL1}}.

Note: You can not use SET to assign values to user-defined variables such as {{myvariable}}. These variables are defined with iimSet within a script.

Contents

Syntax iMacros Browser IE Plug-in Firefox Chrome

SET var value

Parameters

  • var
    One of the built-in variables or !VAR1, !VAR2, !VAR3
  • value
    The value that will be added to var

Examples

Both values are numeric therefore the result is numeric as well:

SET !VAR1 Hello<SP>World
=> Content of !VAR1 is "Hello World". 

At least one of the values is a string therefore the result is a string as well:

SET !TIMEOUT  360
=> The new timeout value is 360 seconds (5 minutes).

See Also

ADD

Retrieved from "http://wiki.imacros.net/set"
Personal tools