I have a template that calls a function and the function returns a
value
The template looks like this:
----
There are [(somefunction arg1={+:id})]  words.
----

So when template is run on the search results I can get correct
result, such as
There are 5 words.
There are 6 words.
There are 0 words.
There are 102 words.
There are 51 words.

I would like to use the result value several times in a more
complicated template without haveing to call the function again, but I
haven't figured out how to do that.  I tried this template:

-------
newvar: [(somefunction arg1={+:id})]

There are {+::newvar}  words.  [if equal {+::newvar} 5]You hit the
jackpot[else]Sorry no jackpot, you only have {+::newvar} words[if]
--------
And some variations of that, but can;t seem to make it work.

-------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" 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/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to