ListCompare
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Summary
Function: integer ListCompare( list a, list b );
Efficiently compares two lists for equality (same contents).
Returns an integer TRUE if the lists are equal, FALSE if not.
| • list | a | – | The first list to compare. | |
| • list | b | – | The second list to compare. |
Implementation
integer ListCompare(list a, list b) { integer aL = a != []; if (aL != (b != [])) return 0; if (aL == 0) return 1; return !llListFindList((a = []) + a, (b = []) + b); }

