Click or drag to resize

Exe function

Exe function let you call another MathStudio script and execute it.


Default syntax: exe "fileName" "startLine" "endLine" "arg1" "arg2" ... "argN". The "fileName" property is the name of the file you want to execute (must be in the same directory of the source) The "startLine" and "endLine" properties are the starting and ending lines that you want the code to be executed (if you want to execute the whole code, then use "s" and "e"). The "args" properties are lines of code that are added to the code you want to execute at the previously specified startLine.

//Execute a simple script
exe "helloWorld" "s" "e"

//Execute a script giving some input argument
exe "rectangle" "s" "e" "[b] = 10" "[a] = 5"