This page contains a list of commands in TexScript.
If you are using Windows, press the Return/Enter key where you would type a space. For example, int a ; would become int (Return/Enter key) a (Return/Enter key) ; (Return/Enter key).
Article:
[retrieve]
Name:
retrieve
Syntax:
retrieve
<variable name> ;
Function:
Retrieves the value of a variable and prints it to the console.
Example:
retrieve a ;
Article:
[set]
Name:
set
Syntax:
set
<variable name> to
/=
<value> ;
Function:
Sets the value of a variable to a new value specified by the user.
Example:
set a to 1 ;
Article:
[define]
Name:
define
Syntax:
define int
/string
/char
/bool
<function name>
<lines of function>
}
Function:
Defines a function with data type specified by the user.
Example:
define int a
int a = 5
int b = 6
if a isn't b
etc.
}
Article:
[if]
Name:
if
statement
Syntax:
if
<first condition name> is
/isn't
/<
/>
<second condition name>
Function:
Compares the first condition to the second condition with the equality/inequality specified by the user.
Example:
if a is b
Article:
[print]
Name:
print
Syntax:
print
<value>
Function:
Prints a single word to the console.
Example:
print hello
Article:
[kill]
Name:
kill
Syntax:
kill
Function:
Exits the interpreter.
Example:
kill
Article:
[quit]
Name:
quit
Syntax:
quit
Function:
Exits the interpreter.
Example:
quit
Wiki: Getting Started with TexScript
Wiki: if
Wiki: kill
Wiki: print
Wiki: quit
Wiki: retrieve
Wiki: set