CALC 1 Home Documentation Home Contact

CALC 1 Script Editor

The Script Editor is used to test and edit key scripts, function bodies, and Function Calculator open and close scripts.

 

Formula editor

Key Scripts

This screen shot shows the script editor for key scripts. Key scripts are usually a function of the stack values. So in the text field at the top of the screen you can enter test values for the script. If no values are entered, the current stack values are used.

Tap the run button to evaluate the script. The result is displayed at the bottom of the screen.

The History button will let you view the history item for each evaluation of the script. You can use the "c1.histComment('debug text'); to write debugging information to the history item.

Function Body Scripts

Formula editor

When editing a function body script, you can enter function parameter values in the text field at the top.

References

Developing Scripts

The script editor is suitable for simple scripts.

For more complicated scripts, you will probably need a JavaScript Debugger to allow you to step through the script and inspect variables.

See the Debugging JavaScripts For CALC 1 page for more information.