@Devs, Here I'm writing the script based code for my application. While in a development I'm facing issue like Invalid CFML construct found
Sample Code :
<cfscript>
cfparam(name="userID", default=0); // Named attributes are accept in script based code.
cfparam("myName", 'Kannan'); // Without named attributes. It's return the error.
writeDump(userID);
writeDump(myName);
</cfscript>
I'm not sure whether the ACF allowed positional values ( without named parameter ) in cfparam or not in script based coding style.
FYR : We can use writedump like below
writeDump(var = userID);
writeDump(userID);
Both are returning same result. Not only writedump most of the building functions are support named attributes as well as positional attributes.
Likewise why cfparam not supported this things. Correct me if I did any mistake on my cfparam code or misunderstood anything.
Thanks in advance !.