# Condition Comparison

Available methods of comparing between variables and your expected result:

<table data-header-hidden data-full-width="true"><thead><tr><th width="161.33333333333331">Comparison</th><th width="244">Explanation</th><th>Example</th></tr></thead><tbody><tr><td>=</td><td>Equals to</td><td>%player world% <em>=</em> wor<strong>l</strong>d</td></tr><tr><td>&#x3C;</td><td>Less than</td><td>%player y% <em>&#x3C;</em> <strong>20</strong></td></tr><tr><td>&#x3C;=</td><td>Less than or equals to</td><td>%player y% <em>&#x3C;=</em> <strong>22</strong></td></tr><tr><td>></td><td>More than</td><td>%player y% <em>></em> <strong>20</strong></td></tr><tr><td>>=</td><td>More than or equals to</td><td>%player y% <em>>=</em> <strong>20</strong></td></tr><tr><td>contains</td><td>Variable contains string</td><td>%player world% <em>contains</em> <strong>nether</strong></td></tr><tr><td>matchesregex</td><td>Variable matches RegEx</td><td>%player name% <em>matchesregex</em> <code>^.\w+</code> (name starts with a dot)</td></tr></tbody></table>
