Skip to main content
November 10, 2011
Answered

Context validation error for the cfelseif tag

  • November 10, 2011
  • 2 replies
  • 1406 views

Im not sure what I'm missing in the code here.  I keep getting a context validatiaon error for the cfelseif tag. Any help would be greatly appreciated.

    This topic has been closed for replies.
    Correct answer 12Robots

    I assume that your CFELSEIF is part of a CFIF block that you just opted not to show.

    <cfif>

    <!--- code here --->

    <cfelseif someCondition>

    <!--- more code here --->

    </cfif>

    You cannot start an IF block with CFELSEIF

    2 replies

    12Robots
    12RobotsCorrect answer
    Participating Frequently
    November 10, 2011

    I assume that your CFELSEIF is part of a CFIF block that you just opted not to show.

    <cfif>

    <!--- code here --->

    <cfelseif someCondition>

    <!--- more code here --->

    </cfif>

    You cannot start an IF block with CFELSEIF

    Owainnorth
    Inspiring
    November 10, 2011

    I do hope so. I'd assumed that was far too obvious but could yet be proven wrong...

    Owainnorth
    Inspiring
    November 10, 2011

    Just start by commenting out all the code except the outer if statement, you'll find it easy enough.

    Inspiring
    November 10, 2011

    Compliments on your eyesight Owain.  Even with my peepers those images are a blur, so I simply ignore the question.

    Owainnorth
    Inspiring
    November 10, 2011

    Chrome built-in zoom functionality FTW.