ez.no / exponential / documentation / reference / template operators / arrays / compare
$input_array|compare( array )
| Name | Type | Description | Required |
|---|---|---|---|
| array | array | Array to compare with input array | yes |
True if arrays are equal, false if not.
This operator simply compares the contents of two arrays and returns true if they're the same, false if they differ.
{array( 1, 2, 3, 4, 5 )|compare( arrray( 1, 2, 3, 4, 5 )}
returns true.
{array( 1, 2, 3, 4, 5 )|compare( arrray( 5, 4, 3, 2, 1 )}
returns false.
log in or create a user account to comment.
Comments