Code IDE Editor commands: Run: runs code Clear script: clears script Delete line: deletes a line of code Alter line: lets you change a line of code Save: Save script to database Load: Load script with ID ------------------------------------------------------------------------- Code lines: var [variable name] = [value]: Creates a new variable set to a certain value [variable] = [new value]: Sets a variable to a specific value [variable] as [function]: Set variable to return value of function [variable] += [additive]: Adds a number to a variable (use negative numbers for subtraction) [variable] -= [subtractive]: Subtracts a number from a variable (use negative numbers for addition) multiply [variable] by [multipler]: Multiples a variable by a number divide [variable] by [divisor]: Divides a variable by a number renamevar [variable] [new name]: Renames a variable display [variable or text]: Outputs a value prompt [variable or text]: Asks the viewer a question they can respond to. Use keyword "answer" to get their answer. The answer by default is "null" if [condition]: Runs code if a condition is met else: Runs code if condition in if statement is NOT met repeat [number]: Repeats code a certain number of times. end: Closes off a loop, condition or function definition delay [number]: waits for the specified number seconds setrandomvar [variable] [lower limit] [high limit]: Sets a variable to a random number between 2 numbers setjoinvar [variable] [string 1] [string 2]: Sets a variable to 2 texts combined function [function name]: define a function [function name]: Runs the function // :Comment (you must leave a space) ------------------------------------------------------------------------- Conditions: [value] = [value]: True if values are the same [value] != [value]: True if values are not the same [value] > [value]: True if first value is larger than second value [value] > [value]: True if first value is smaller than second value (>= and <= self-explanatory) ------------------------------------------------------------------------- Built-in variables: answer: last answer given by the user keyCode: last key pressed by the user keyPressed: true if a key is pressed, otherwise false
Function parameters are currently not supported :( Update log: V1.1: Added while loops, functions, and indents in loops V1.0: Released