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

TypeNameDefaultDescription
Stringstring1
Stringstring2
BooleancaseSensitivetrue= false, if lower and upper case are ignored for the comparison

Outputs

TypeNameDefaultDescription
BooleanidenticalTrue, if string1 is identical to string2