2 Replies Latest reply on Nov 13, 2006 6:10 AM by Newsgroup_User

    Conditional code to see if dynamic variable exists -    #Evaluate("LeftOver" & query.line)#

    Level 7
      I've created a dynamic variable without any problems. I now only want to
      display the variable if the variable exists or is defined. I've tried a few
      variations of the code below

      I cant seem to get the syntax correct. Can someone help me out?


      <cfif isdefined (Evaluate("LeftOver" & query.line))>

      <cfoutput>#Evaluate("LeftOver" & query.line)#</cfoutput>

      <cfelse>
      0</cfif>