My Code was:
<cfset iif(false, WriteOutput("It will execute IF TRUE"), WriteOutput("It will execute IF FALSE"))>
I got the out put:
It will execute IF TRUEIt will execute IF FALSE
Variable YES is undefined.
Here the question is why I am getting this error?
Then I made the testing with the following code:
<cfset c = writeoutput("hi")><cfoutput>#c#</cfoutput>
The out put of the above code was:
After this out put I got my answer to first question i.e the writeOutPut() function returning some Boolean value but in "YES" and "NO" format and iif() function treats that YES and NO as variable not as a Boolean value.
But, another question arises here When we gets the value NO/false in calling writeOutPut()?
If anyone know the answer of my question or my understanding is wrong . Please write your comment.