Ternary operator returns Empty List operand regardless of boolean condition
Dynamo version
Dynamo Core 2.10.0.3455
Operating system
Windows 10
What did you do?
Ternary operator returns wrong value when any of the 2nd or 3rd operand is an empty list [].

What did you expect to see?
Expected true ? [0] : []; to be equal to [0] etc.
What did you see instead?
Got result [] (Empty List)
Thank you for submitting the issue to us. We are sorry to see you get stuck with your workflow. While waiting for our team member to respond, please feel free to browse our forum at https://forum.dynamobim.com/ for more Dynamo related information.
Hello @xRadne - We are aware of this issue and are currently improving the If Node and DesignScript If expression to better deal with empty lists and null values. You can check it out here: https://forum.dynamobim.com/t/request-for-feedback-refactored-the-if-node/60647/13
to avoid the replication wrap this code inside an imperative block.
tracked internally DYN-6223