- February 8, 2017
- Posted by: user
- Category: Uncategorized
No Comments
Today i was working with cfscript and i wanted to use a cfparam inside cfscript and i came to one solution. This is what you can do in cfscript.
[code:cf]
<cfscript>
IF(NOT IsDefined(‘Variables.test1’)) Variables.test1 = ”;
</cfscript>
[/code]
This thing has been made so easy if you are using Coldfusion 9.
[code:cf]
<cfscript>
param name="Variables.test1" default="";
</cfscript>
[/code]