Mohamad,

I have rewritten the code pattern to suit your "else" use case

 

> I use a lot $list as 
>
> if *filter**-not-**empty* do-this *else* do-that
>
>
>    - filter is not empty do what is given inside $list widget
>    - filter is empty go for emptyMessage
>
>  
<$list filter="[<casevariable>] ~[[::else]]" variable=case>
    <$list filter="[<case>!prefix[::else]]" variable=case>
        *filter**-not-**empty *do-this
    </$list>
  <$list filter="[<case>prefix[::else]]" variable=case>
        *else *do-that
   </$list>
</$list> 
Note: untested

Regards
Tony

-- 
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/8bb3aa5f-223c-44ba-9fe7-cc4aa3726255%40googlegroups.com.

Reply via email to