Subcommands - kryllyxofficial01/python-plus-plus Wiki
These commands are extensions of the Main Commands.
String Input
in str <var_name>: <question>
Asks the user <question>, then saves it as a string to <var_name>.
Number Input
in str <var_name>: <question>
Asks the user <question>, then saves it as a number to <var_name>.
String Variable
str <var_name>: "<content>"
Creates a new string variable called <var_name>, then saves <content> to it.
Number Variable
num <var_name>: <content>
Creates a new integer variable called <var_name>, then saves <content> as a float (so it can be an integer or decimal) to it Can also store the result of a basic math equation (see Math).
Boolean Variable
bool <var_name>: <content>
Creates a new boolean variable called <var_name>. It can either be literal True or False, or have the result of a bool statement (see Booleans).
Variable Referencing
out v"(<var_name>)"
| out <var_name>
Gets the content of <var_name> and prints it. The first one allows for regular text to be in the same string, while the second prints only the variable's content.
Infinite Loop
loop out "<text>" inf
Prints <text> infinite times. (Placeholder for while
loop.)
Random String Selector
rand str <var_name>: (<choice1>, <choice2>, ...)
Chooses a random string from the given list, and saves it to <var_name>.
Random Number Selector
rand num <var_name>: (<choice1>, <choice2>, ...)
Chooses a random number from the given list, and saves it to <var_name>.
Random Boolean Selector
rand bool <var_name>: (<choice1>, <choice2>, ...)
Chooses a random boolean from the given list, and saves it to <var_name>.