EasyManua.ls Logo

Symantec WISESCRIPT EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 - Page 164

Symantec WISESCRIPT EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0
174 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WiseScript Editor Reference 164
Quick Reference
Logical Operators
Right$(str,position) 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.
Mid$(str,position,
length)
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.
Concat$(str1,str2) Joins two strings.
Instr(str1,str2) 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.
Before$(str1,str2) Returns the portion of a string (str1) before the indicated
substring (str2). Example: Before$(“windows”,“d”) returns
“win.
After$(str1,str2) Returns the portion of a string (str1) after the indicated
substring (str2). Example: After$(“windows”,“d”) returns
“ows.
Len(str) Returns the length of a given string. Do not include the $
character because this operator does not return a string.
Lcase$(str) Converts all characters in a string to lowercase.
Ucase$(str) Converts all characters in a string to uppercase.
Ltrim$(str) Deletes all leading spaces.
Rtrim$(str) Deletes all trailing spaces.
Logical
Operator
Example Description
And A And B True only if expression A and B are both true
Or A Or B True if either expression, A or B, is true, or if both A and
B are true
Not A Not B True only if one expression is true. Example: A but not B
> X>Y True if expression X is numerically greater than Y
< X<Y True if expression X is numerically less than Y
>= X>=Y True if expression X is numerically greater than or equal
to Y
<= X<=Y True if expression X is numerically less than or equal to
Y
= X=Y True if expression X is numerically equal to Y
<> X<>Y True if expression X is not numerically equal to Y

Table of Contents

Related product manuals