beautypg.com

Lower – Visara Master Console Center Scripting Guide User Manual

Page 146

background image

Chapter 5 Script Commands

Scripting Guide

146

LOWER

Syntax:

LOWER( $String) ==> $Lowercase

Description:

Converts uppercase characters to lowercase.

Action:

The uppercase characters of an evaluated string expression are converted

to lowercase characters.

Parameters:

$String. String expression. The character string to convert to lowercase.

Returns:

String value. A copy of the evaluated string expression with all alphabetic
characters in lowercase. All of the other characters remain the same as in

the original expression.

Notes:

1. The original string expression is not changed.
2. Only the alphabetic characters are converted; numerics and special

characters are not changed.

Example:

$Original := “ThIS iS HaRd tO REaD”
$LowerCaseText := LOWER( $Original)
// $LowerCaseText will contain the string ‘this is hard to
read’
$Text := LOWER( $Text)
IF LOWER( $Name) == “fred”

//Commands here will be processed if $Name is equal to

//any of the following: ‘Fred’ ‘FRED’ ‘FrEd’ etc.

ENDIF

See Also:

UPPER