Open main menu

Wikibooks β

Rexx Programming/How to Rexx/case sensitivity

< Rexx Programming‎ | How to Rexx

Identifiers and keywordsEdit

The rexx interpreter is case insensitive. This means that identifier names and keywords containing lowercase letters are considered to be the same as those containing uppercase letters:

/* These variables are all the same */
count = 1
Count = COUNT + 1
say count

Literal StringsEdit

Lettercase is preserved within literal strings:

say 'Hello!'  /* Hello! */
SAY 'HELLO!'  /* HELLO! */

Comparison of StringsEdit

In rexx, the comparative operators are case sensitive , so strings containing differing letter cases will not be interpreted as matching strings:

if "abc" = "ABC" then
  say "The strings are the same!"    /* This does not happen because the strings are not the same */