$isupper

Tests if the letters in a character string are uppercase.

Syntax

$isupper(string)

Parameters

string

a character string or an expression that evaluates to a character string

Return Value

1-character binary string. Evaluates to 1 ($True) if string meets the validation test; otherwise, evaluates to 0 ($False).

Comments

This function tests if a particular character string is uppercase, i.e., contains no lowercase letters.

Example

$isupper("aBC")

Evaluates to $False.

$isupper(43)

Evaluates to $True.

 

Related Topics