Some of the commands and functions in the FireScript language take strings as arguments. To these you may either pass a string variable or a string literal surrounded by double quotes, e.g. “This is a string.” To put a double quote inside a string, preface it with the percent sign '%'. The percent sign '%' is used as an escape character to embed variables and quote characters in strings.
The sequence %% is replaced by a single %.
The sequence %" is replaced by ".
% followed by the name of a variable is replaced by the value of the variable.
For example, the script statement below:
If HostAddress is equal to “ftp.progress.com” when this script is invoked, the command will be expanded to:
the expression,
will be expanded at runtime to:
and the statement
the expanded string sent will be:
Passing a string variable is equivalent to, but faster than passing a string literal that expands the variable.
Example:
is equivalent to but faster than
See Also |