Categories > TinyButStrong general >

help with conditional blocks

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: gavin
Date: 2004-02-10
Time: 03:23

help with conditional blocks

I have a new question regarind conditional blocks:

I want to be able to HIDE a table or row if a variable is null or doesn't exist.

I have tried many combinations, the latest like this:

[tbs_check.1; block=tr; if [array2.output]=null]
---or---
[tbs_check.1; block=tr; if !array2.output]
---or---
[tbs_check.1; block=tr; if [array2.output]=""]
---or---
[tbs_check.1; block=tr; if [array2.output]=null]


None of these seem to work array2.output is an element of type 2 array.

Thanks, if you have any suggestions I would appreciate it!


By: gavin
Date: 2004-02-10
Time: 03:47

Re: help with conditional blocks

Found it! In case others want to know, the syntax was:

[tbs_check.2; block=tr; if [array2.output]!='']

This will display the block only if the value is not null.