[thelist] if/else

me me at cgiguy.com
Thu Nov 1 11:45:15 CST 2001


dude, like what language is that...

maybe you could do something like this...

if(p1=1) {...do this...}
elseif (p1>1) {...do this...}
elseif (p1=p2) {...do this...}
else {...do this...}

or you could do this(if you had my new lang, but ya dont)

<if var.cart.p1 = 1>
...do this...
<c myfunc> cmain() { printf("hahaha"); }</c>

<elseif var.cart.p1 > 1>
...do this...
    <var.cart.x += 2>

<elseif var.cart.p1 = var.cart.p2>
...do this...

<else>
<b>...eeks, error....</b>

</if>

me.


----- Original Message -----
From: Teck Low <TeckLLow at rainbowhouseinc.com>
To: <thelist at lists.evolt.org>
Sent: Thursday, November 01, 2001 9:26 AM
Subject: [thelist] if/else


> How could I make 3 statements into if/else depending on p1 and p2? Only 1
of
> the 3 conditions will be true.
>
> if(p1=1) { pagetxtnx=href+p1+'">Next</a>  '; };
> if(p1>1 && p1<p2)
>    pagetxtbk=href+(p1-2)+'">Back</a>  ';
>      pagetxtnx=href+(p1+2)+'">Next</a>  '; };
> if(p1=p2) { pagetxtbk=href+(p1-2)+'">Back</a>  '; };
>
> Thanks
> Teck
>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list