The ability to create user-defined functions is an important part of any programming language, and CFML provides two ways to create UDFs. Tag-based UDFs are more powerful than <cfscript>-based UDFs, and they do more of the work for you by, for example, simplifying data validation. <cfscript>-based UDFs are advantageous when porting function code between languages. UDFs may process required and optional arguments, may be stored in scopes, and may even be passed as parameters to other functions. Sample Questions
|