Categories > TinyButStrong general >

display block (multi-condition)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Michaelsen
Date: 2009-03-27
Time: 15:40

display block (multi-condition)


Hello there,

How can I do this?

[onload;block=div;if [val] = 1; if [val] = 2]

In my case, I would like to load a div in more than one ocasion. For example I would like to show the same menu item not only when [val] = 1 but also when [val] = 2.

Is this possible?

Regards,

- Michaelsen
By: Skrol29
Date: 2009-03-27
Time: 15:49

Re: display block (multi-condition)

Hi,

What you need is a OR operator.

http://www.tinybutstrong.com/support.php#faq_or
By: Skrol29
Date: 2009-03-27
Time: 15:54

Re: display block (multi-condition)

parameter "if" also support expressions with regexp. It may help to perform a OR operator.

http://www.tinybutstrong.com/manual.php#html_field_prm_if
By: Michaelsen
Date: 2009-03-28
Time: 15:34

Re: display block (multi-condition)


Thank you for the reply Mr. Skrol29, I thought would be possible to have it directly in the html side.

Please keep up the good work.

Regards,

- Michaelsen