Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

compare

Summary

Compares the contents of two strings.

Usage

input|compare( compare_with )

Returns

TRUE if the strings match, FALSE otherwise.

Description

This operator compares the contents of two strings and returns TRUE if they're identical, FALSE if they differ.

Examples

Example 1

{'Hello world'|compare( 'Hello world' )}

Returns TRUE.

Example 2

{'Hello world'|compare( 'Goodbye world' )}

Returns FALSE.

Balazs Halasy (05/02/2004 10:52 am)

Balazs Halasy (04/05/2005 2:37 pm)


Comments

There are no comments.