[tw] Re: Boolean logic help

2011-05-16 Thread Tobias Beer
This syntax doesn't look valid at all. For one, If you use parameter
evaluation all your javascript code must be within the double curly
brackets. At least, I am not familiar with this kind of syntax, so I
would presume it's not at all doing what you're trying to achieve:

tiddler TID##SECTION if:{{CODE}}

...especially the outer if:.

Also, although conceivable, I don't know of an out of the box solution
to have a subsequent tiddler macro call depend on the results of
another one that precedes it. At least, your example rather seems to
look like non-working pseudo-code.

Can you describe exactly what you are trying to achieve? As in...

1) read section and check it against a static variable / a section / a
slice value
2) if true... output section/slice/field/string
3) if false... output error from section/slice/field/string

It would also help if you'd explain in what broader context you want
to do this.

Cheers, Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@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.



[tw] Re: Boolean logic help

2011-05-16 Thread Eric Shulman
 This syntax doesn't look valid at all...
 At least, I am not familiar with this kind of syntax...
 tiddler TID##SECTION if:{{CODE}}

see http://www.TiddlyTools.com/#CoreTweaks (#890)

which adds the if:... parameter handling to the tiddler macro

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@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.



[tw] Re: Boolean logic help

2011-05-14 Thread axs
hmm... i don't think it should error out. store.getTiddlerSlice() should 
return undefined when the slice doesn't exist, and the comparison should be 
perfectly valid. What is the error that you get? Try just doing 
store.getTiddlerSlice manually with the slice name and see what the error 
console tells you.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@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.