This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Nesting functions

Important note: all examples follow aTbRef naming conventions.


NOTE: this subject is only pertinent for more expert users

Can a function code contain another complete function?

In principle, Yes, this is possible. Those with a programming background may be used to techniques like nesting one function inside another. However, there is no difference in use by doing so and it is currently not recommended. Why:

Variables in the outer function are (likely) accessible to the nested function but again, this is currently not recommended.


Next: Re-using variables from other functions