runtime script execution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jack

    runtime script execution

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

    "This is a <#iif(PassedInV alues("x")=1, "good", "bad")#> question.
    <#iif(PassInVal ues("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


Working...