functionisEqual
Determine whether two strings are identical
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
Strings.isEqual(string1, string2); Strings.isEqual(string1, string2, caseSensitive=true);
Description
Compare whether two strings are identical, optionally ignoring case.
It is intended for ASCII, the case-insensitive comparison is not guaranteed to work for UTF-8.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | string1 | ||
| String | string2 | ||
| Boolean | caseSensitive | true | = false, if lower and upper case are ignored for the comparison |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | identical | True, if string1 is identical to string2 |