Thought up another difference, this time with AND and &&:
'AND
IF BUTTON()AND #A THEN:?"Hello!"
'Press A and this message shows! Also works if you press another button while pressing A!
'&&
IF BUTTON()&& #A THEN:?"Hello!"
'Press any button and this message shows. #A is just boiled down to "well this one is true, hope the other one is also"
The INPUT command takes input from the keyboard, so you can type your name.
The PRINT command puts text on the screen. ; is used to put multiple strings together (this is only for the print command. to add strings together in other commands, use +)
Compression really helps though. It crushed a small rpg I made (including multiple files and a GRP) into a file smaller than 3 of the map files. I think this is the key for the one I used: [74N3F3D4] (it's all in Japanese though)
Using a FOR loop.
FOR <whatever variable you want>=<first value> TO <second value>
... code ...
NEXT
FOR example, here's a bit of code that makes "Hello world!" appear 10 times:
FOR I=0 TO 9
PRINT "Hello world!"
NEXT
and here's code that counts from one to ten:
FOR I=1 TO 10
PRINT I
NEXT
Functions are a bit of code that you can use again and again, just by using its name like any other command.
In SmileBASIC, functions come in 3 forms:
*No values returned (no parenthesis)
DEF HI
?"Hi!"
END
*1 value returned (yes parenthesis, must include RETURN [value] somewhere)
DEF E()
RETURN 2.7182818
END
*2 or more values returned (no parenthesis but with an OUT, no RETURN)
no space 4 this