Tips for golfing in SmileBASIC SmileBASIC deserves more attention. I've only seen 3 users here (including myself!) providing SB answers, and while that doesn't surprise me, it disappoints me. It being a paid lang as well as being a BASIC dialect certainly turns people off, but for those who own it it's actually pretty flexible and, surprisingly, golfable. I figured I'd open this tips thread for it and see what comes up.

I expect 12Me21 to visit frequently :)
Replace string!="" with string&gt;""

SB allows you to do greater/less comparisons on strings, based on their codepoints. However, the empty string is considered the smallest string there is.

So for situations where you do string!="" you can use either string&gt;"" or ""&lt;string, since every string is greater than "" and "" is less than every string. Depending on whether you use &lt; or &gt; depends on if the statement needs whitespace before or after to be valid syntax, which can also save you bytes.

For example:

WHILE S$!=""


can be turned into

WHILE S$&gt;""


and further golfed to

WHILE""&lt;S$