Skip to the content
Documentation

compare

No ratings yet

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.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.