isEqual

Determine whether two strings are identical

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Strings.isEqual(string1, string2);
Strings.isEqual(string1, string2, caseSensitive=true);

Description

Compare whether two strings are identical, optionally ignoring case.

Syntax

identical = isEqual(string1, string2, caseSensitive)

Inputs (3)

string1

Type: String

string2

Type: String

caseSensitive

Default Value: true

Type: Boolean

Description: = false, if lower and upper case are ignored for the comparison

Outputs (1)

identical

Type: Boolean

Description: True, if string1 is identical to string2