Choose your language

Choose your login

Support

Using functions

This page applies to:

Last updated September 30, 2025

If you have variable definitions that are quite complex, or are going to be reused within your script, it is best practice to define these variables as a separate function. The variables in the estimateCost(order) function can then reference these functions to simplify your script. You can define any functions you want, however, below are some example functions you might find useful:

Comments

Comments are not available in this preview environment. On papercut.com, this space shows the live Disqus comment thread for this page.