HTDB : Docs : Designer's Guide : Scripted Functions
About
Overview
Philosophy
Features
News
Download
Help Us!

Docs
Overview
Designers
Language
Environment
C-Functions
S-Functions
Developers
Roadmap
Architecture

Community
Powered By

[home]
Scripted Functions

Script writers can write their own custom, interpreted functions. Such functions behave from an API standpoint the same as compiled functions.


Defined:
#define functionName(arg1[=default], arg2[=default])
"${arg1}" "${arg2}"
Called:
${functionName(arg1=one, arg2=two)}
Yields:
"one" "two"
Notes:
arguments are optional and will be "cleared" when the function is called without them. arguments may be used in any order.

also note that the script writer may declare the function to have default values for arguments. if the function is called without a argument, the function will be called as though the argument had called with the default value.

   
12,340 impressions