assertTrue

The concordion:assertTrue tag evaluates an expression to obtain a boolean result. If the result is true, the tagged element is marked as a success else it is marked as a failure.

Example

Given this instrumented snippet:

<p>
    Since the password was correct, the user should then be        
    <span concordion:assertTrue="#user.isLoggedIn()">logged in</span>.
</p>    

We get the following outcomes depending on the evaluation result of the expression #user.isLoggedIn():

Evaluation Result Outcome
true SUCCESS
false FAILURE