COMMANDS ADD x y adds x plus y SUB x y subtracts x minus y MTP x y multiplies x times y DIV x y divides x by y PEN x y r g b draw at location x y with color r g b LOOP loops all lines between it and the next END END closes a LOOP or FOR ENDIF closes an IF FOR x loops all lines between it and the next END x amount of times, will decrement x each loop. CLS clears the screen STOP stops the program and enters the editor WHEN x _ y loops all lines between it and the next END when x _ y is true. _ can be G, L, E, !G, !L, !E, meaning "greater than", "less than", "equal to", not greater than", "not less than", and "not equal to" respectively. IF x _ y executes all lines between it and the next ENDIF or ELSE when x _ y is true, but only once. ELSE executes all lines between it and the next END when the previous IF condition was false RUN runs the program INPUT v allows the user to set v to an arbitrary value SET x y sets a variable x to y GETKEY variable containing the current key pressed as a string PRINT *x* prints x, and arbitrary string PRINT x prints x, a variable GOTO x goes to line x SHORTHAND COMPONENTS AND COMMANDS ++ x increment (+1) x -- x decrement (-1) x @x integer var "x" $x sting var "x" %x boolean "x", either 0 (false) or 1 (true) `x allows you to go to line x to edit while within the editor LOGIC FUNCTIONS only work with boolean values NOT x if x is 1, output is 0, else, output 1. AND x y if x and y is 1, output is 1, else, output is 0 NAND x y if x and y is 1, output 0, else, output 1. OR x y if x or y is 1, output 1, else, output 0. NOR x y XOR x y if either x or y, but not both, is 1, output 1, else, output 0. XNOR if either x or y, but not both, is 1, output 0, else, output 1. if x or y is 1, output 0, else, output 1.
!! THIS IS A WIP !! A BASIC-like coding language made in Scratch. Some typings are non-standard due to some symbols not being present in the text engine. A list of supported characters can be found below. (NOT case sensitive) 1 2 3 4 5 6 7 8 9 0 - = ! @ # $ % ^ & * ( ) _ + a b c d e f g h i j k l m n o p q r s t u v w x y z [ ]