Folks,
Ad a result of Jeremy adding a new match operator to 5.1.20 the case statements
in this code pattern will be even more user friendly.
First we would say
[<case>prefix[caseone]suffix[caseone]]
Now we would say
[<case>regexp[^caseone$]]
But this Will become which is easier to remember
[<case>match[caseone]]
The regex example still points us to the best approach for more complex tests
but match will work for many common cases.
I will now abandon only testing the negative in binary comparisons such as
[<var>] -[[false]]
becomes
[<var>match[true]]
the case insensitive option may also help when var or [{$:/temp/tiddler}] was
provided by the user in case they entered tRue and other combinations by
mistake.
Thanks Jeremy
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/5d64d5bd-5f12-4031-aad4-6ee57bbb780a%40googlegroups.com.