DeepEqual

Kategorie: Script
Ab Engineversion: 5.0 OC

Beschreibung

Compares two values. Unlike the ==-operator, DeepEqual compares the elements of proplists and arrays if two non-equal proplists are passed.

Syntax

bool DeepEqual(any value1, any value2);

Parameter

value1:
First value for comparison.
value2:
Second value for comparison.

Beispiel

var foo={a=1};
var bar={a=1};
Log("Pointer comparison: %v, deep comparison: %v", foo==bar, DeepEqual(foo, bar));
Logs "Pointer comparison: false, deep comparison: true".
Sven2, 2014-04