CMP()
From TVPaintWiki
Revision as of 12: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…')
<<<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