----------------------- READ THIS ENTIRELY ----------------------- USE FULLSCREEN! cout means console out. The white button deletes the last line of the program. SYNTAX: when you write a fuction: [function1] [arg1] [arg2] [function2] [arg1] FUNCTIONS: function names are not case sensitive. set: takes 2 arguments: the variable name, then it's value. Example: set x 5 would create a variable named x with the value 5. print: if you want to just print a string straight into the console, it takes one argument: the thing you want to print. print hello would print the word hello into the console. this even works if you already have a variable. To print a variable, you put a backsplash (\) between the function and the variable. lets say, there is a variable named x that is set to 5, then print \ x would output the number 5. if you just say print \ it will output the backslash into the console just like any other string, and it will also output the backslash if the thing after it is not the variable's name. wait: takes 1 argument waits an amount of seconds wait 1 waits 1 second input: can be used as a function or value. When used as a function, it asks the user a question. The question and response are shown in the console. backslash and variable rules are the same as print. lets say there is a variable called x set to "What's your name?". input \ x would ask the user the question "Whats your name?" When used as a value for a variable, it works the same as it does as a function, with the backslash and variable rules, except the response is recorded in the set variable. so if you want to make a variable to log the answer, it would be: set name input What's your name? This sets the variable called name to their response to the question.
FUNCTIONS: (comment if you have any ideas) set change print wait input