Conditional Statements

Parsley provides {{if}} conditional statements for logic flow. 

Checking Equality

When writing if conditionals you can check equality with a single equals character; =. Equality can also be inverted with an exclamation; !=.

If evaluating another Parsley expression inside of an if conditional use single curly brackets to wrap your expression.

If / Else

When writing an if condition you can also specific an else condition.