LOWA

From Creatures Wikia

Jump to: navigation, search

LOWA is a CAOS command which converts a string to lower case.

Usage

Syntax: LOWA str (string)

Returns, as a a string, str in lower case. Characters in the string which are not upper case letters are unaffected.

Examples

Simple use:

SETS va00 GNAM
OUTS LOWA va00
    docking station

This implements LOWA va00, storing the result in va01:

SETS va01 va00
DOIF STRL va01 gt 0
  LOOP
    ADDV va02 1
    SETV va03 CHAR va01 va02
    DOIF va03 ge 'A' and va03 le 'Z'
      ADDV va03 32
      CHAR va01 va02 va03
    ENDI
  UNTL va02 eq STRL va01
ENDI

See also

Personal tools