WandaLL
10-06-2004, 07:11 PM
:confused:
I have just totally confused myself with the else if, etc statements. I have a group called OPA. I wanted this group to see different information. One group will see information based on their cost center which is contained in a text file. If the individuals in this group cost center is not in this text file, then they will see something else. I have about 75 other groups and everything has been working okay until I added the below group. I've been fooling with this for about a week now. Any help would be appreciated...
This is the cost center code:
<%
'this include file defines the lists of cost centers for India (Bangalore)
'modify the if conditions in this file when cost centers change, are added, or removed
if costCtr = "01021" or costCtr = "08813" or costCtr = "08941" or costCtr = "08942" or costCtr = "08943" or costCtr = "08944" then
practice = "OPA"
end if
%>
This is my else if then statement:
<% elseif UCase(busDiv) = "OPA-OPSAD" then %>
<iframe width="300" height="155" src="http://fescodoc.fmr.com/Get/File-70490/fesco.htm"></iframe>
<% elseif UCase(busDiv) = "OPA-OPSAD" then %>
<!-- #INCLUDE file="CostCenterBangalore.txt" -->
<% elseif UCase(practice) = "OPA" then %>
<iframe width="300" height="155" src="http://fescodoc.fmr.com/Get/File-471727/Bangalore_Associates_Dynamic_Content.htm"></iframe>
<% end if %>
I have just totally confused myself with the else if, etc statements. I have a group called OPA. I wanted this group to see different information. One group will see information based on their cost center which is contained in a text file. If the individuals in this group cost center is not in this text file, then they will see something else. I have about 75 other groups and everything has been working okay until I added the below group. I've been fooling with this for about a week now. Any help would be appreciated...
This is the cost center code:
<%
'this include file defines the lists of cost centers for India (Bangalore)
'modify the if conditions in this file when cost centers change, are added, or removed
if costCtr = "01021" or costCtr = "08813" or costCtr = "08941" or costCtr = "08942" or costCtr = "08943" or costCtr = "08944" then
practice = "OPA"
end if
%>
This is my else if then statement:
<% elseif UCase(busDiv) = "OPA-OPSAD" then %>
<iframe width="300" height="155" src="http://fescodoc.fmr.com/Get/File-70490/fesco.htm"></iframe>
<% elseif UCase(busDiv) = "OPA-OPSAD" then %>
<!-- #INCLUDE file="CostCenterBangalore.txt" -->
<% elseif UCase(practice) = "OPA" then %>
<iframe width="300" height="155" src="http://fescodoc.fmr.com/Get/File-471727/Bangalore_Associates_Dynamic_Content.htm"></iframe>
<% end if %>