Skip to end of banner
Go to start of banner

isUpper

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Availability

This routine is available starting with katl-commons 1.0.

Syntax

isUpper(str)

Description

Returns true if the provided argument str is a string containing only upper letters.

Parameters

Parameter name

Type

Required

Description

str

string

Yes

Specifies a character expression.

Return type

boolean (true/false)

Example

Example 1

wret = isUpper("FOOBAR");
print(wret);

Print true

Example 2

wret = isUpper("aAA2345f.FF");
print(wret);

Print false

Example 3

wret = isUpper("");
print(wret);

Print false

Notes

isUpper returns false if the character string str contains blanks or special characters or is a null string.

See also

 

  • No labels