title: "StrCmp" description: TRSE built-in method (from IDE help)
StrCmp
Systems: C64, MEGA65, PLUS4, C128, VIC20, PET, X16, OK64
Parameters: s, s
StrCmp( [ input string / pointer ], [ compare string ]);
- [ input string ] - Input string / pointer
- [ Compare string ] - String to compare with
Description
Compares two strings and returns either true (1) or false (0).
Example
if (strcmp(sp,"HELLO")) then
begin
printString("YOU SAID HELLO.",0,40);
end;