STR_ISLOWER
Use the STR_ISLOWER script function to check whether all characters of a specified string are written in lowercase letters. Special characters and numbers that might be used within the string are ignored. You can define the string directly by using single or double quotes, or use a script variable for this purpose.
Syntax
STR_ISLOWER (String)
Parameters
-
STR_ISLOWER
Checks whether the characters of a string are written in lowercase letters -
String
An alphanumeric string
Format: script literal or script variable
Return codes
-
Y
All characters of the string are written in lowercase letters -
N
The string does either not include letters or at least one uppercase letter
Examples
The following example checks whether the archive key of the own object only includes 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: