<$let foo="1" bar="2">
<%if [<foo>match[1]] %>
<%if [<bar>match[2]] %>
match foo and bar
<%endif%>
<%endif%>
</$let>
But is it possible to write the condition as condition1 AND condition2 or something like that? Because for multiple conditions, one ends with a ladder of code with big cyclomatic complexity.
You could also try the :boolean run prefix for more complex combinations (and, or, nand, nor, xor, xnor), available as a plugin here: $:/plugins/yaisog/boolean-run-prefix.
I tried to use the wizard, but There was an error in submitting the update. HttpError: Not Found
I’ll try again later, but here’s the updated tiddler so that it doesn’t get lost Conditional Shortcut Syntax.tid (2.5 KB)
I will just add to the solution that inside where we have match foo and bar inside there you can retrieve the result of the filter eg match foo and bar to <<condition>>