Hello,Consider the following test code:
a!localVariables( local!Torerance_Name:"Mean", local!test_0: and( local!Torerance_Name = "Mean", "15.0" ), local!test_1: and( local!Torerance_Name = "Mean", "8.2" ) )
Discussion posts and replies are publicly visible
Appian casts strings to boolean and In Expression Strings beginning with "t", "T", "y", "Y", or "1" return true; all other strings return false.Remove the string values from and() or use explicit boolean comparisons.
Sadly OP has seemingly no-showed this thread - I was greedily hoping for some validation on my correct answer from nearly 3 days ago
Funny, I never exactly realized that the casting works out that way for all strings beginning with "T" and "Y" as well. It makes sense in a way of course, though in situations like the original post here, when someone wanders into a "typecast as boolean" situation with no idea what's happening or why, it can produce some truly silly results