CONNECT Correct Usage of Logical Statment

I have the need to set a variable based on the state of another variable I'm trying to write it as cleanly as possible but not having much luck.  I have a set of data with corresponding values that overlap and would like to take advantage of the ||(or) statement to clean up the expression but it's not working as expected.  Below is the expression I've written which only ever returns "4" even when DIA. is clearly set to one of the other variables such as 0:0.25 or 0:0.375 etc.

DIA == [0' 0.2500"] || DIA == [0' 0.3125"] || DIA == [0' 1.1250"] || DIA == [0' 1.3750"] ? 4.5 : DIA == [0' 0.3750"] || DIA == [0' 0.5000"] ? 6 : DIA == [0' 0.4375"] || DIA == [0' 0.7500"] || DIA == [0' 0.8750"] || DIA == [0' 1.0000"] || DIA == [0' 1.2500"] || DIA == [0' 1.5000"] ? 5 : DIA == [0' 0.6250"] ? 5.5 : 4

Anybody know what I'm doing wrong?

Parents Reply Children
No Data