Expression Operators - Symantec WISESCRIPT EDITOR 7.0 SP2 - FOR NS V1.0 Manual

Hide thumbs Also See for WISESCRIPT EDITOR 7.0 SP2 - FOR NS V1.0:
Table of Contents

Advertisement

Variable
TEMPLATES
TEMP
USERPROFILE

Expression Operators

WiseScript Editor Reference
Description
C:\Documents and
Settings\user\Templates.
Folder where temporary
files can be created.
Location of the current
user's profile.
In conditionals, loops, and Set Variable commands, you can use the following operators:
symbols, functions, or logical operators.
Operators can operate on a variable or a constant. There are two types of constants:
numeric and string. Numeric constants must be a positive or negative integer (example:
234 or -100). Strings must be enclosed in quotation marks (" ").
If you enter a variable name instead of a number or string in any of the functions below,
do not enter the % characters around the variable name. Variables must follow standard
naming conventions.
See
Variables and Expressions
For details on scripts that demonstrate using expression operators, see the sample
scripts that manipulate strings and perform calculations. For details on sample scripts,
see ScriptHelp.htm in the Samples subdirectory of this product's installation directory.
Symbols
+
Addition
Subtraction
*
Multiplication
/
Division
Functions
Left$(str, position)
Right$(str,position)
Mid$(str,position,
length)
Concat$(str1,str2)
Example Value
C:\DOCUME~1\User\LOCALS~1\Temp
C:\Documents and Settings\User
on page 28.
Returns the left portion of a string, where str is the string,
and position is the number of characters from the left to
return. Example: Left$("windows",3) returns "win."
Returns the right portion of a string, where str is the
string, and position is the number of characters from the
right to return. Example: Right$("windows",3) returns
"ows."
Returns the middle portion of a string, where str is the
string, position is the number of characters from the left to
start, and length is the number of characters to return.
Example: Mid$("windows",2,3) returns "ind."
Joins two strings.
137

Advertisement

Table of Contents
loading

Table of Contents