Forgot to say: spaces are fine, as in tiddler.data("team").contains
("two words")

On Jan 4, 8:50 am, cmari <cema...@gmail.com> wrote:
> You should be able to do something like this:
> <<forEachTiddler where 'tiddler.tags.contains(["myTag"]) &&
> tiddler.data("team") && tiddler.data("team").contains("Detroit")' >>
> (Success seems to depend on including both the search for a tag and
> the search for the existence of the tiddler.data field, before the
> specific search for the contents of the data field).
> cmari
>
> On Jan 4, 8:36 am, AlanBCohen <alanbco...@gmail.com> wrote:
>
> > I've been using this combination quite successfully but have
> > encountered a new situation.  One of my fields normally contains one
> > value; e.g., tiddler.data("team")=="Detroit".
> > But a new situation has created the need for multiple teams.
> > Preferably, I could continue to use one field for multiple teams and
> > use some kind of substringing or  'containsAny' type of syntax to
> > retrieve one of the team values.  I'm weak on Javascript; what would
> > the syntax to retrieve one of multiple values in a field be?  Is there
> > any preferential way to separate the values (none of the values
> > contain spaces)?
>
>

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.


Reply via email to