Develop > Programming > System Language reference > List: rtecalls > rtecall("islower") function

rtecall("islower") function

A RAD function that verifies that a string contains only lowercase characters, or only lowercase characters and the provided non-lowercase characters.

Function

rtecall("islower")

Format

$L.success.flag= rtecall ($L.fnc.name, $L.return.code, $L.str, $L.chars)

Parameters

The following parameters are valid for the rtecall("islower") function:

Parameter Data type Description
$L.success.flg Logical Indicates if the function was successful.
$L.fnc.name String Name of the sub-function to call, in this case "islower".
$L.return.code Number Provides a more detailed return code.
$L.str String The string to be checked.
$L.chars String An optional comma-delimited string of non-lowercase characters to allow.

Factors

If the $L.success.flg is false, the function failed. If it is true, the function succeeded.

Example

 $L.success.flag=true
 $L.return.code=0
 $L.str=name in $L.file
 $L.chars=" "
 $L.success.flag=rtecall("islower", $L.return.code, $L.str, $L.chars)

Results:

  • When name in $L.file="b1b", $L.success.flag is false.
  • When name in $L.file="Bob", $L.success.flag is false.
  • When name in $L.file="bob", $L.success.flag is true.