Quantcast
Channel: Lucee Dev - Latest topics
Viewing all articles
Browse latest Browse all 464

Conditional statement bug

$
0
0
<cfoutput>
    <cfset i = 8/>
    <cfdump label="before" var="#i#"/>
  
    <cfif i = 20>
      <!--- do somthing --->
    </cfif>
    
    <cfdump label="now" var="#i#"/> <!--- i is now 20 ---> 
</cfoutput>

Conditional statement should not be converted to an assignment statement.
This is a bug, AC flagged this error in runtime

This affects all lucee versions

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 464

Trending Articles