> Is their a way to put multiple conditions on one line I.E.
>                 if (store.getTiddlerSlice(val1,"Purchased") != "Yes,
> yes, Y, y") continue;

var val=store.getTiddlerSlice(val1,"Purchased");
var choices=["Yes","yes","Y","y"];
if (!choices.contains(val)) continue;

or.. .written as one line, without temp variables:

if
(["Yes","yes","Y","y"].contains(store.getTiddlerSlice(val1,"Purchased")))
continue;

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

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

Reply via email to