Categories > TBS next version >

An "isset" conditional!

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Blackeye_Guy
Date: 2004-10-20
Time: 15:37

An "isset" conditional!

Hello Devels.
TBS no doubt is growing up everyday, I would like to suggest to you implement an ISSET CONDITIONAL under HTML SIDE what is very usefull.

thanks by the help
By: Skrol29
Date: 2004-10-20
Time: 15:39

Re: An "isset" conditional!

Hi,

What's a Isset Conditional?
By: Blackeye_Guy
Date: 2004-10-20
Time: 15:44

Re: An "isset" conditional!

like [tbs_check;if[.....];then]

[tbs_check;isset[.....];then]

understand ?

thanks
By: Skrol29
Date: 2004-10-20
Time: 15:51

Re: An "isset" conditional!

you can already do this using parameter noerr.

TBS 1.x :  [tbs_check;if [var.myvar;noerr]='']
TBS 2.x :  [onshow;when [var.myvar;noerr]='']
By: Blackeye_Guy
Date: 2004-10-20
Time: 15:54

Re: An "isset" conditional!

thanks by the help

it really worked

hugs
By: Marcus
Date: 2004-11-11
Time: 00:03

Re: An "isset" conditional!

Skrol29 wrote:

>TBS 2.x :  [onshow;when [var.myvar;noerr]='']

1. Does that mean that if myvar is not set and you
do NOT use the noerr parameter an error message will come up?
2. Is there a difference in the command above if myvar is set and contains nothing ('') or it's really not set?

Thx,
Marcus
By: Skrol29
Date: 2004-11-11
Time: 00:42

Re: An "isset" conditional!

1 : yes
2 : no difference