CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Microsoft VBScript compilation (0x800A03F6) Expected 'End'

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    67
  • Date Created
    Friday, December 10, 2010
  • This Article Has been Viewed
    2200 times
  • Short Desc
    When writing your IF and ELSEIF statements, you must only have 1 IF in the statements.
  • Details
    When you use IF Statements, you must always close them.
    Sometimes when you add an aditional IF statement within a cluster of IFELSE Statements, you might run into this issue.

     
    Microsoft VBScript compilation (0x800A03F6)
    Expected 'End'
    /Editor1.asp, line 112
  • Recreate Issue
    To recreate this issue.

    <%
    If getValue="This Value" then
    If getValue="Another Value" then
    ELSEIF getValuse="get this valuse" then
    end if
    %>
  • Resolve Issue
    To correct this issue, only have one IF within the statement.
    The rest must be ELSEIF

    <%
    If getValue="This Value" then
    ELSEIf getValue="Another Value" then
    ELSEIF getValuse="get this valuse" then
    end if
    %>