Is there a way to convert a String to evaluable SAIL expression ? I

Is there a way to convert a String to evaluable SAIL expression ?

I have a comparative expression saved in a database field, I need to retrieve it from the database and evaluate it within a condition in SAIL.

OriginalPostID-137948

OriginalPostID-137948

  Discussion posts and replies are publicly visible

Parents
  • Per jackm's comments earlier, it looks like eval() might be something you can leverage to handle these. It is an undocumented function as of 7.8 at least, so Appian Best Practices (AFAIK) recommend it to be used very cautiously if at all. However, given that, I was able to test it as working in both of the code examples you posted earlier. What's more, you can push a value into a local variable and then evaluate text containing that local variable.
    i.e.

    =load(
    local!value: "asdf",
    eval(
    "len(local!value)=4"
    )
    )
Reply
  • Per jackm's comments earlier, it looks like eval() might be something you can leverage to handle these. It is an undocumented function as of 7.8 at least, so Appian Best Practices (AFAIK) recommend it to be used very cautiously if at all. However, given that, I was able to test it as working in both of the code examples you posted earlier. What's more, you can push a value into a local variable and then evaluate text containing that local variable.
    i.e.

    =load(
    local!value: "asdf",
    eval(
    "len(local!value)=4"
    )
    )
Children
No Data