Share via


Struct::equal Method

Determines whether two structs are equal.

Syntax

client server public static boolean equal(Struct struct1, Struct struct2)

Run On

Called

Parameters

  • struct1
    Type: Struct Class
    The first of the two structs to be compared.
  • struct2
    Type: Struct Class
    The second of the two structs to be compared.

Return Value

Type: boolean
true if the structs are equal; otherwise, false.

Remarks

Two structs are equal if they have the same number of fields, the field names are the same, and each field is the same type and has the same value.

See Also

Reference

Struct Class