Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Show hidden are if "ELSE"

I have the following statement to show an area if a series of conditions are met, I need to add code to display area2 if 'else'

---

<%If (Qnrpg1.EOF And Qnrpg1.BOF) Or ((Not Qnrpg1.EOF Or Not Qnrpg1.BOF) AND (Qnrpg1.Fields.Item("MiddleNm").Value = "True")) Then %>
   
REGION 1

<% Else ' MiddleNm%>

REGION 2
     
   <% End If ' MiddleNm%>

Is the above the correct syntax ?
0
Aleks
Asked:
Aleks
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
Yes just drop the  ' MiddleNm inside the <% Else and the <% End If
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
sedwick, the MiddleNm is commented so that is ok
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now