Re: "if" statement
- From: "long eddy" <eddy@xxxxxxxxxx>
- Date: Sat, 19 Nov 2005 18:55:17 GMT
"Prophet" <M_Moyes@xxxxxxxxxxx> wrote in message:
news:K7bdf.119101$yS6.32408@xxxxxxxxxxx
> I am new to webdesign and am looking for the correct way to do a "if"
> statement.
>
> Eg. if a>b then X, else Y
>
> I can do this in excel, but have never done this in a web page - I know
this
> is so basic but it escapes me on how to do it.
>
> Thanks,
-----------------------
<?
if($a > $b)
{
print "x";
}
else
{
print "y";
}
?>
.
- References:
- "if" statement
- From: Prophet
- "if" statement
- Prev by Date: .jpg and .jpeg
- Next by Date: Need to create secure page on site.
- Previous by thread: "if" statement
- Next by thread: Website Display
- Index(es):
Relevant Pages
|
Loading