Thanks Tony! This is great for code readability! Cheers Mohammad
On Wednesday, July 31, 2019 at 5:46:25 PM UTC+4:30, TonyM wrote: > > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/22ffa41f-1c21-4b2d-8d66-c1ff23753a1c%40googlegroups.com.