J
Jules
Just trying to display different wording depending on reference put in.
Got it to work ok when it was just ABC then 123, otherwise 789, but now
have to add a second IF and am getting errors. Could someone advise
where I'm going wrong please?
If its ABC or DEF then put 123
If its GHI or JKL then put 456
otherwise put 789
<%If UCase(Left(msHeader,3)) = "ABC" or UCase(Left(msHeader,3)) =
"DEF" Then %>
<i> 123 </i>
<% Else %>
<% if UCase(Left(msHeader,3)) = "GHI" or UCase(Left(msHeader,3)) =
"JKL" Then %>
<i> 456 </i>
<% Else %>
<i> 789 </i>
<% End If %>
Got it to work ok when it was just ABC then 123, otherwise 789, but now
have to add a second IF and am getting errors. Could someone advise
where I'm going wrong please?
If its ABC or DEF then put 123
If its GHI or JKL then put 456
otherwise put 789
<%If UCase(Left(msHeader,3)) = "ABC" or UCase(Left(msHeader,3)) =
"DEF" Then %>
<i> 123 </i>
<% Else %>
<% if UCase(Left(msHeader,3)) = "GHI" or UCase(Left(msHeader,3)) =
"JKL" Then %>
<i> 456 </i>
<% Else %>
<i> 789 </i>
<% End If %>