The 'emptyMessage' attribute is usually used for alternate outcomes. If the 
alternate will have a lot of code, then sometimes it is better to put in a 
macro. e.g. emptyMessage=<<mycode>>

Since you're doing a simple state check, you could possibly also use two 
sets of reveal widgets.

On Tuesday, April 28, 2020 at 3:29:26 PM UTC-7, Tony K wrote:
>
> Mat may i bother you with one more question because it is way passed my 
> bedtime and i want to sleep :D
>
> from my testing 
>
> <$list filter="[is[current]!field:reference[]]">
> <div class="sl-header">
> ''Ref'': <a href={{!!url}}><$view field="reference"}}/></a><br>
> ''Keywords'': <$list filter={{!!keywords}} 
> template="$:/ak/ui/KeywordsTemplate" />
> </div>
> </$list>
> This will execute what is inside the <$filter></$filter> if the field 
> "reference" is empty or not present
>
> how do i add an "else" to this ? if it is present i want to execute 
> another code..
>
>
> On Wednesday, April 29, 2020 at 1:14:45 AM UTC+3, Mat wrote:
>>
>> You'll need to do it for all three "individually". But I'm not aware of a 
>> native field called "Keyword" so I'm guessing this is your own custom 
>> field. Regardless:
>>
>> {{{ [tag[mytag]] [backlinks[hardlink]] [keyword[mykeyword]] }}}
>>
>> <:-)
>>
>> P.S I made SearchWords <http://searchwords.tiddlyspot.com/>which may be 
>> of use.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4d3e2459-90ca-4876-8fe9-8db5771b5acc%40googlegroups.com.

Reply via email to