---
layout: default
class: Macro
title: compare STRING STRING
summary: Compare two strings by using the compareTo method of the String class.
---

Compare two strings by using the compareTo method of the String class. The result "0" means the two strings are equal, "1" means the first string is greater than the second string, "-1" means the first string is less than the second string.

    ${compare;stringA;stringB}
