TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

hiding parts of block merge conditionally

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: lauren
Date: 2016-02-09
Time: 14:37

hiding parts of block merge conditionally

hi guys

i'm trying to hide part of a block merge if the value of the field is zero but the following code isn't working, nor does using a magnet with ope=mko:0

[cmpds.footnote_number;when [cmpds.footnote_number]!=0]

if anyody has an idea i would be grateful

thanks

By: Skrol29
Date: 2016-02-09
Time: 15:33

Re: hiding parts of block merge conditionally

Hi Lauren,

Can you explain what do you have which is a bad result ?
Can you also explain the detail of the solution with magnet ?
By: lauren
Date: 2016-02-09
Time: 17:21

Re: hiding parts of block merge conditionally

skrol - sorry for the waste of time - i sorted it out myself
thanks anyways
:)

i used:

<sup>[cmpds.footnote_number;if [cmpds.footnote_number]==0;then '']</sup>