CMP()

From TVPaintWiki
Revision as of 13:51, 22 December 2009 by KenC (Talk | contribs) (Created page with '{{LangRefCatCrumbs}} CMP(string1, string2) Compares two specified character strings. This instruction returns 0 if the character strings are different, or 1 if they are ident…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<<<George<<<George Language Reference

  CMP(string1, string2)

Compares two specified character strings. This instruction returns 0 if the character strings are different, or 1 if they are identical. Upper and lower case letters are considered to be the same.

Example :

test = CMP(word1, word2)
IF(test == 1)
	PRINT "the two words are identical"
END