By: Blackeye_Guy
Date: 2004-10-20
Time: 22:43
|
How can I do this?
if($var == "text" && $var2 = "text"){ echo "text"; }else{ echo "text2"; }
with TBS in HTML SIDE ?
thanks
|
By: Skrol29
Date: 2004-10-20
Time: 23:26
|
Re: How can I do this?
Try with concatenation.
[tbs_check;if [var.var1].[var.var2]=='text1.text2';then 'hello1';else 'hello2']
NB: [var] fields with if + [var] fields doesn't work with TBS 1.x.
|
By: Blackeye_Guy
Date: 2004-10-21
Time: 00:02
|
Re: How can I do this?
So if doesnt works... how can I do ? Would I change my version of TBS to 2 ?
|
By: Skrol29
Date: 2004-10-22
Time: 10:45
|
Re: How can I do this?
> So if doesnt works... how can I do ?
It depends of what you're tring to do.
It works with tbs_check fields (onshow fields for TBS 2).
> Would I change my version of TBS to 2 ?
I can say now.
Supporting [var] fields in 'if' condition is still on study for TBS 2.
|
By: Skrol29
Date: 2004-10-25
Time: 01:51
|
Re: How can I do this?
TBS 2.0 allows [var] fields in parameter 'if'.
Enjoy :)
|
|
Posting in progress.
Please wait...
|