Compare strings
- Last UpdatedJan 22, 2026
- 1 minute read
In a script, you can use the StringCompare(), StringCompareNoCase() and StringCompareEncrypted() functions to compare two strings.
|
Use |
To |
|---|---|
|
StringCompare() |
Make a case-sensitive comparison. |
|
StringCompareNoCase() |
Make a case-insensitive comparison. |
|
StringCompareEncrypted() |
Compare an encrypted string with an unencrypted string. |
Note: Starting with InTouch HMI 2026, StringCompareEncrypted() function is deprecated, and will therefore not be available for use in InTouch scripts. Importantly, after the upgrade of the InTouch application, all occurrences of the StringCompareEncrypted script function will have no effect at runtime and will always return 0.