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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.