I've made this script to adjust the extensions on our rectangular transition ducts but it doesn't want to work for me. Everything is fine if I keep it simple and leave out the " Or "Ductmate 35" " part but for this to work, I will need the or statement.
Anyways, here's the script...
select item.cid
case 2
dim extin = item.dim[6].numvalue
dim extout = item.dim[7].numvalue
dim con1 = item.connector[1].value
dim con2 = item.connector[2].value
if ( con1 = ("TDC" or "Ductmate 35") ) and
(extin < 2 ) then
item.dim[6].value = 2
end if
if ( con2 = ("TDC" or "Ductmate 35") ) and
(extout < 2 ) then
item.dim[7].value = 2
end if
if ( con1 <> ("TDC" or "Ductmate 35") ) and
(extin < 0.5 ) then
item.dim[6].value = 0.5
end if
if ( con2 <> ("TDC" or "Ductmate 35") ) and
(extout < 0.5 ) then
item.dim[7].value = 0.5
end if
item.update()
end select
Can anyone spot the problem? I'm hoping its an embarrassingly simple one.