Result of if condition doesn't fit the expectations

Good morning, my problem is th e following:
I want to take off the structural material of my elements if it is defined and if not, I want to take off the material of the elements ( asuming there is then only one layer) , but my “If” condition doens’t give me the result I want. The “tested block” is flase, then it should result the “false block” but I’ m still getting the “true block”.
Does someone knows what I am doing wrong?

Yes, an If-Statement only supports a single true or false value.
You could use a Code Block with this in it :slight_smile:

Test = true ? truevalue : falsevalue ;

1 Like