Re: "if" statement




"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";
}

?>


.



Relevant Pages

  • if statement
    ... I am new to webdesign and am looking for the correct way to do a "if" ... 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. ... Prev by Date: ...
    (microsoft.public.frontpage.programming)
  • if statements
    ... I am new to webdesign and am looking for the correct way to do a "if" ... 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. ... Prev by Date: ...
    (comp.lang.javascript)
  • "if" statement
    ... I am new to webdesign and am looking for the correct way to do a "if" ... 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. ... Prev by Date: ...
    (microsoft.public.frontpage)
  • Re: Datei mit Uhrzeit benennen
    ... Linux, Schulungen, Webprogrammierung, Webdesign ... Prev by Date: ...
    (de.comp.os.unix.linux.misc)

Loading