Category: Script
Since engine version: 5.0 OC
DeepEqual
Description
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);
Parameters
- value1:
- First value for comparison.
- value2:
- Second value for comparison.
Example
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".