This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

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 11:52 am)

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


Comments

There are no comments.