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
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