Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if statement

Status
Not open for further replies.

crmpicco

Programmer
Nov 29, 2004
66
GB
should this work?

<%
if node.item(1).childnodes.item(i).childnodes.item(0).text <> node.item(1).childnodes.item(i).childnodes.item(2).text then
%>
<table align="center">
<img src="images/warning.gif">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Any flights marked in <font color="#FF0000">RED</font> arrive on the following day of departure</font>
<%
else
%>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</form>
</body>
</html>
<%
end if
%>
 
in what way do you mean "would this work" ?

if you mean dropping in and out of ASP, yes it will

but it appears from your code if the condition is true you do not close a table, form, the body and html

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top