<$list filter="[has[yourfilter]count[]]" variable=result >
<$reveal state="zerostate" type="match" text=<<result>>>
NOTHING HERE FOLKS!
</$reveal>
<$reveal state="zerostate" type="nomatch" text=<<result>>>
<<result>>
</$reveal>
</$list>
AFAIK state can only take a text reference. The Reveal widget acts the most like structures in other languages that people are familiar with, so it would be useful if it could make variable/variable comparisons as well.
On Saturday, July 28, 2018 at 1:00:58 PM UTC-7, Diego Mesa wrote:Thanks for this! Just to confirm, state can't take a variable directly right? Like:<$reveal state=<<result>> type="nomatch" text="0"<<result>>
</$reveal>
default | Default value to use when the state tiddler is missing |
<$reveal text=<<result>> type="nomatch" default="0">
When you want to put a variable in a widget parameter use the macrocall widget instead to invoke the widget then you can pass variables.
Regards
Tony