Menu

Users

jimkokko5

Users Page

How to use SourScript

To use SourScript, you just open it, type in a command and press enter.

Here are all the commands:

GENERAL COMMANDS:
"write(something)": Writes something on the screen.
"close": Quits the SourScript console.
"update": Sends you to the SourScript download page.
"version": Shows the current version of SourScript.
"developers": Shows all the people who have worked on SourScript.
"datetime": Shows the CURRENT date and time.

VARIABLE COMMANDS:
"newvar(variable_name, value)": Creates a new variable and gives it a value. Default value is 0.
"delvar(variable_name)": Deletes the variable with that name (if there is one).
"showvar(variable_name)": Shows the variable and its value.
"showvars": Shows all the variables.
"clearvars": Deletes all variables.
"add(var_name, value)": Adds the "value" to the variable. "value" can also be a variable itself.
"subtract(var_name, value)": Subtracts the "value" from the variable. "value" can also be a variable itself.
"multiply(var_name, value)": Multiplies the variable by the "value". "value" can also be a variable itself.
"divide(var_name, value)": Divides the variable by the "value". "value" can also be a variable itself.
"stringAdd(var1, var2, holder_var)": Combines the strings of var1 and var2 and stores them in a new variable (holder_var).
"getType(variable)": Shows the type of the variable (String or Number).


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.