Strings use the same boolean operations as numbers. So if you wanted to see if A$ is XYZZY: IF A$=="XYZZY" THEN ...