Expression Operators - Symantec WISESCRIPT PACKAGE EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 Reference

Table of Contents

Advertisement

Variable
USERPROFILE

Expression Operators

WiseScript Package Editor Reference
Description
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)
Instr(str1,str2)
Example Value
C:\Documents and Settings\User
on page 110.
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.
Determines if a substring (str2) is present within an
original string (str1). Do not include the $ character
because this operator does not return a string.
Quick Reference
253

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript package editor 8.0

Table of Contents