Contact Us

Let us know to help you out quickly!

 Admin User     Feb,08 2017

CFPARAM in CFSCRIPT

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.

<cfscript>IF(NOT IsDefined('Variables.test1')) Variables.test1 = '';</cfscript>

This thing has been made so easy if you are using Coldfusion 9.

<cfscript>param name="Variables.test1" default="";</cfscript>