Hi Tony

> Do you think this is a bug?

It’s a subtle difference in the handling of missing fields between two slightly 
different formulations.

Using the advanced search “filter” tab on tw.com <http://tw.com/>, 
[{HelloThere!!missing}] returns 1 result (an empty string), while 
[[HelloThere]get[missing]] returns zero results.

The history is that the transclusion syntax came first, at some point we 
realised that not being able to distinguish between a missing field and a blank 
field was a problem, and so we “fixed” it by adding the new get operator (we 
couldn’t change the behaviour of the transclusion syntax without breaking 
backwards compatibility).

Best wishes

Jeremy.


> 
> Regards
> Tony
> 
> 
> On Tuesday, August 13, 2019 at 2:57:28 PM UTC+10, Mohammad wrote:
> Tony
> 
> This works for me
> {{{ [{!!tiddler-mode}match[test]then{$:/SiteTitle}else{$:/SiteSubtitle}] }}}
> 
> 
> Furthermore semantically I like to have if then else.
> 
> --Mohammad
> 
> On Tuesday, August 13, 2019 at 9:05:26 AM UTC+4:30, 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/ <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 <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 
> <mailto:tiddlywiki+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/37086ad7-facd-4ad4-9bdc-ceba52f0638d%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/37086ad7-facd-4ad4-9bdc-ceba52f0638d%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/FA04FB31-3A5C-4C63-BBA0-3CD464524A7B%40gmail.com.

Reply via email to