Welcome to the Creatures Wiki! Log in and join the community.

LOWA

From Creatures Wiki
Revision as of 12:29, 11 February 2006 by Alexwatson (talk) (c2e caos)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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