Basically I have four different types of windows here. Right now when listing them for B.O.M. as you can see 1 and 2 both true for HLH_Color_Known so thats cause a conflict. Can someone explain a way for substituting code or just a better way to script. Any help would be great.
if HLH_provider = 'NORCO' then
--1-- if HLH_wintype = 'Safety' and HLH_Color_Known = 1 then
COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc + HLH_Color_Code,'000.005'
else
--2-- if HLH_wintype = 'Safety' and HLH_DP_50 = 1 and HLH_Color_Known = 1 then
COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc + HLH_Color_Code + "-" + "DP-50",'000.005'
else
--3-- if HLH_wintype = 'Safety' and HLH_DP_50 = 1 then
COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc + "-" + "DP-50",'000.005'
else
--4-- if HLH_wintype = 'Safety' then
COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc,'000.005'
endif
endif
endif
endif
endif