Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Is there a way to set-up a program inside of an assembly to not matter whether or not you use upper or lower case letters?
I have a simple program in an assembly that just changes the Mate Offset of a componet, depending on which state the assembly is in, either low or high. In my program I prompt the user to enter "LOW" or "HIGH" to shift the assembly. Problem is some guys always have their caps lock on and some guys don't. Currently to fix the issues, I just double the lines in the program listing to cover whether the user uses all uppercase or lowercase letters. See below:
IF SHIFTING =="LOW"
D123=1
ENDIF
IF SHIFTING =="low"
D123=1
ENDIF
Is there a way to not make if shift is LOW or low work? Is there an "equals or" function in when programing? It's not a huge deal to double up on the lines in the program since mine are usually pretty short. But it's remembering to make sure the lowercase & uppercase values stay the same.
Thanks for any info/tips/advice!
Ted Otto