Mis-spelling -- sb "suffix" . Also, there is a mismatched </div>
Good luck -- Mark On Wednesday, January 24, 2018 at 8:20:16 PM UTC-8, TonyM wrote: > > Mark, et al.. > > Unfortunately this does not seem to be working for me, even when I > eliminate system tiddlers in the variables > for example; > > \define showmenu(menutype:"dropdown") > <$vars > menutypeset="$menutype$" > dropdowntype="dropdown" > > inlinetype="inline" > > > <$list > filter="[title<menutypeset>prefix<dropdowntype>sufix<dropdowntype>]" > variable=null> Do this when menutypeset = dropdown </div> </$list> </$vars> > \end > > > > > On Wednesday, January 24, 2018 at 3:19:06 PM UTC+11, Mark S. wrote: >> >> Try the following, keeping in mind the variable/macro equivalency. >> >> The first 2 give identical results, but one looks for equality and other >> for non-equality. >> >> -- Mark >> >> -------------------------------------------- >> >> <$vars var1="stuff" var2="stuff2"> >> >> <$list filter="[title<var1>prefix<var2>suffix<var2>]" emptyMessage="NOT >> EQUAL"> >> EQUAL >> </$list> >> >> <$list filter="[title<var1>] [title<var2>] >> -[title<var1>prefix<var2>suffix<var2>] +[limit[1]]" emptyMessage="EQUAL"> >> NOT EQUAL >> </$list> >> >> <$list filter="[title[I AM ALWAYS TRUE]]"> >> TRUE >> </$list> >> >> </$vars> >> >> On Tuesday, January 23, 2018 at 6:50:38 PM UTC-8, TonyM wrote: >>> >>> Folks, >>> >>> I am looking for the correct filter syntax to compare the macro values >>> <<currentMenu>> and <<currentTiddler>> >>> >>> If both are the same or if they are not >>> >>> eg; >>> >>> <$list filter="filter syntax" variable=name> >>> <<currentMenu>> and <<currentTiddler>> are the same >>> </$list> >>> >>> <$list filter="filter syntax2" variable=name> >>> <<currentMenu>> and <<currentTiddler>> are not the same >>> </$list> >>> >>> Further I would like a filter that is always true that reads well >>> >>> <$list filter="filter syntax3" variable=name> >>> Allways true with Filter Syntax3 >>> </$list> >>> >>> In this case different Filter Syntax's will be used, for different >>> results. >>> >>> Regards >>> 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ea5331de-4452-4b4e-ad9d-52f4e5f63150%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

