Please see this discussion I started Peeking at the pre-release 5.3.2 - Conditional Shortcut Syntax.
I have raised some technical Questions at the end I hope the developers can assist with;
- Would there be a way for us to reference the result of the filter to use in the content? answered below, use
<<condition>>
- The reason I ask is if the result of the filter was available in a variable it could be used in some cases to construct the result, allowing for interesting abraviated code opportunities?
- Keep in mind the if/else/elsif structure could be inside a list, and handle a case structure for all listed tiddlers.
- Is there a way to use filters with multiple runs in them (Yes via a function?) but how about inline.
- For example we may want the Ifcondition to be true if/:else/:else/:else eg one of 4 values.
- Yet to test but could we just add quotes to the filter?
"[<test>match[one]] :else[<test>match[two]] :else[<test>match[three]]"
- Then the “else” willl be used if
<test>
matches other values like “five six and seven”?