Following Jeremy's comments, since "enlist" will collapse strings, you can 
do this fairly cleanly:

{{{ [enlist{!!tiddler-mode}else{wiki-mode}] }}}

(Sorry, I shortened tiddler $:/config/wiki-mode for visibility)

Or at least it worked in my tests.

Thanks!

-- Mark

On Monday, August 12, 2019 at 9:35:26 PM UTC-7, TonyM wrote:
>
> Folks,
>
> The following is not working
> {{{ [{!!tiddler-mode}else{$:/config/wiki-mode}] }}}
> and not returning the content of $:/config/wiki-mode when the field on 
> the current tiddler is empty?
>
> Am I correct thinking this because else can only return a string in the 
> parameter?
>
> Regards
> Tony
>
> On Saturday, August 10, 2019 at 12:57:44 AM UTC+10, Jeremy Ruston wrote:
>>
>> I’m delighted to announce the release of TiddlyWiki v5.1.20:
>>
>> https://tiddlywiki.com/
>>
>> This release is massive. Some of the many highlights:
>>
>> * New conditional filter operators “then” and “else”
>> * New mathematics and string filter operators
>> * Improved handling of duplicates in filters
>> * Improved keyboard shortcuts
>> * New saver for saving the single file version direct to GitHub or GitLab
>> * New BrowserStorage plugin for saving tiddlers in browser local storage
>> * New InnerWiki plugin for rendering TiddlyWiki screenshots
>> * New and improved translations for Catalan, Chinese Simplified and 
>> Chinese Traditional, French, German, US English
>> * Several new performance optimisations
>> * New palettes and a new palette manager for more easily editing them
>> * New and fixed animations for several system actions
>> * Improved handling of JSON files
>> * New mechanism to add plugins to a wiki from the command line
>> * New “savewikifolder” and “deletetiddlers" commands for Node.js
>> * Many bug fixes
>>
>> You can upgrade your existing single file wikis at: 
>> https://tiddlywiki.com/upgrade.html
>>
>> As usual, please exercise caution when working with an upgrade, and take 
>> care to take plenty of backups. Comments and questions welcome.
>>
>> It only remains to offer my sincere thanks to the many people who gave up 
>> their time and talents to contribute to this release.
>>
>> Best wishes
>>
>> Jeremy
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/75933245-74fb-4f91-8d69-7db281aa4194%40googlegroups.com.

Reply via email to