JSup - Forlani

JSup code (Bozza)

JSup uses code in many places to provide values/conditions/action/etc. to animations, script, channels, etc.

Normally the code is entered in a Code multitab control:


/img/JSup/mathCode-in-textField.pngSome animations contain parameter expressions that can only be entered in Math code language in simple text fields (see the picture on the right).

Code languages

The code in JSup can be entered in two different language.

Code execution

An Action code is executed when the user, for example, presses a button, or when a condition is met (for a condition script).

A code that is used to provide a value (or a condition) to an animation or a script, instead, is executed the first time (when the window that contains the animation code is displayed) and then when a some trigger tag changes its value (see tag change deadband to limit the changes of a tag).

Code documentation

The documentation for the Math code and for JavaCode is always available in the MathExpression help / JavaCode help tabs of the code control.

Code locations