> -----Original Message-----
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
> 
> Thanks Mike/Geoff/Russ.....just one more question....how do 
> ya close the IF?? ;-)

Either:

if(condition)
{
        multiple;
        statements;
}
elseif(condition)
{
        multiple;
        statements;
}
else
{
        multiple;
        statements;
}

Or

if(condition)
        single statement;
elseif(condition)
        single statement;
else
        single statement;

Or

if(condition):
        statement;
        statement;
elseif(condition):
        statement;
        statement;
else:
        statement;
        statement;
endif;

Plenty flexible.  Note that the first two are interchangeable, basically
if you have multiple statements you need parenthesiseses otherwise you
can get by without them, and for the second format you just have to use
the keywords "if", "elseif", "else" with a colon and end with "endif"
with a semi-colon.

http://us3.php.net/manual/en/language.control-structures.php#control-str
uctures.if
http://us3.php.net/manual/en/control-structures.alternative-syntax.php

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include <stdjoke.h>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216201
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to