STR_ISLOWER
Use the STR_ISLOWER script function to check whether all characters in a specified string are lowercase. Special characters and numbers within the string are ignored. You can pass the string directly using single or double quotation marks, or use a script variable.
Syntax
STR_ISLOWER (String)
Parameters
| Parameter | Description | Format |
|---|---|---|
| String | The alphanumeric string to check | Script literal or script variable |
Return Codes
| Return Value | Condition |
|---|---|
| Y | All characters in the string are lowercase |
| N | The string contains no letters, or at least one uppercase letter |
Examples
The following example checks whether the archive key of the current object contains only lowercase letters.
:SET &VAR# = GET_ATT(ARCHIVE_KEY1)
:SET &CHECK# = STR_ISLOWER(&VAR#)
:IF &CHECK# EQ "Y"
: P "ArchiveKey1 only includes lowercase letters."
:ENDIF
See also: