GrayIntel
Mechanical
- Feb 9, 2012
- 11
I am having difficulty with the following IF scenario:
IF PTC_MATERIAL_NAME=(==?)STEEL (material steel & aluminum have been assigned in setup, as have the steel & alum spring rates as variable values)
SPRING_RATE=SPRING_RATE_STEEL
ELSE
SPRING_RATE=SPRING_RATE_ALUMINUM
ENDIF
I realized my syntax is bad with the initial IF statement, so what should it be if you don't mind responding? IF PTC_MATERIAL_NAME='STEEL' OR IF PTC_MATERIAL_NAME=="STEEL" or something similar.
Thanks....Mark
IF PTC_MATERIAL_NAME=(==?)STEEL (material steel & aluminum have been assigned in setup, as have the steel & alum spring rates as variable values)
SPRING_RATE=SPRING_RATE_STEEL
ELSE
SPRING_RATE=SPRING_RATE_ALUMINUM
ENDIF
I realized my syntax is bad with the initial IF statement, so what should it be if you don't mind responding? IF PTC_MATERIAL_NAME='STEEL' OR IF PTC_MATERIAL_NAME=="STEEL" or something similar.
Thanks....Mark