EqualString

The EqualStringfunction determines whether two supplied strings are equal.

Syntax

  Copy codeCopy code
bool EqualString(
  string string1,
  string string2,
  bool ignoreCase
);

Parameters

string1

A string.

string2

A string to compare to string1.

ignoreCase

Indicates whether case should be ignored when matching. If true , case will be ignored; if false , case will be considered.

Return values

Returns true if string1and string2are equal; false if they are not.