Show
Ignore:
Timestamp:
11/03/06 22:25:22 (2 years ago)
Author:
scorfield
Message:

Fixes #160 by pushing generation of condition down into true/false. Added test case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/trunk/verbs/true.cfm

    r170 r257  
    6969                 
    7070                // compile <true> 
    71                 // <true> is a no-op 
     71                if (fb_.verbInfo.parent.ifUsed) { 
     72                        fb_appendLine("<cfelse>"); 
     73                } else { 
     74                        fb_appendLine("<cfif #fb_.verbInfo.parent.condition#>"); 
     75                        fb_.verbInfo.parent.ifUsed = true; 
     76                } 
    7277        } 
    7378</cfscript>