Question
Unintuitive If() behaviour
Current Behaviour:
a!localVariables(
Â%A0 local!test: {},
Â%A0 if(
Â%A0 Â%A0 condition: local!test > 0,
Â%A0 Â%A0 valueIfTrue: {
Â%A0 Â%A0 Â%A0 "My First Message",
Â%A0 Â%A0 Â%A0 "My second Message",
Â%A0 Â%A0 Â%A0 "My third message"
Â%A0 Â%A0 },
Â%A0 Â%A0 valueIfFalse: "My false Message"
Â%A0 )
)
Given the above code when the local!test value is {1} the output is {"My First Message"}
when the local!test value is {1,2} the output is {"My First Message", "My second Message"}
when the local!test value is {1,2,3,4} the output is {"My First Message", "My second Message", "My third message", "My First Message"}
If you set the condition to be local!test < 0 you will see similar unintuitive behaviour.
Expected behaviour: an error to be thrown stating that you can not do a comparison between a value and a list.
