UPPER system switch UPPER system switch Syntax ... UPPER Function Control whether or not the case of each character is ignored when string comparisons are performed. Usage Considerations The switch value is shared globally by all program tasks. If you change the value in one task, it affects comparisons in all other tasks. Therefore, do not change this switch during normal program execution. Details When this switch is enabled and two strings are compared using the operators , >=, or >, all lowercase characters are treated as though they were uppercase characters. That is, when UPPER is enabled, both of the following comparisons yields a TRUE value:
"a" == "A" and "A" == "A" When UPPER is disabled, the case of characters is considered during string comparisons. Then, for example, the comparison on the left above results in a FALSE value, while the comparison on the right yields a TRUE value. By default, UPPER is enabled, so that string comparisons are performed without considering the case of the characters. The STRDIF real-valued function always compares strings considering their case. You can leave UPPER enabled always and then use STRDIF in situations where case is important.
Related Keywords DISABLE monitor command DISABLE program instruction ENABLE monitor command ENABLE program instruction SWITCH monitor command SWITCH program instruction SWITCH real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 556