runtime script execution

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

I want to be able to embed/evaluate script blocks inside a string. For
example:

"This is a <#iif(PassedInValues("x")=1, "good", "bad")#> question.
<#iif(PassInValues("x")=1, "Thanks for asking it.", "Why did you ask
it?")#>"

Each block (between <# #>) needs to be evaluated. The script would need
access to a key/value list during execution. So each block would be
evaluated (passed in the key/value list to use) and replaced with it's
result. In the above scenerio, if PassedInValues("x") = 1, then the string
would end up like:

"This is a good question. Thanks for asking it."

Any help would be greatly appreciated.

Thanks in advance,

Jack
 
These 'strings' will be coming from a table. I don't think this will work
for me (if so, can you clarify?)

Jack
 
Back
Top