Description

Checks if the expression to be evaluated is True.



Attributes

Common

  • ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.

Misc

  • DisplayName - Renames the activity.

  • ErrorMessage - The error message to be shown if the expression is False.

  • Expression - The expression to be evaluated.


Example

  1. Create a String variable called input.
  2. Add an InputDialog activity inside the initial Sequence.
  3. In the InputDialog Result field, add the input variable.
  4. In the InputDialog Title field, write "Student Course".
  5. In the InputDialog Label field, write "Enter your course:".
  6. After the InputDialog activity, add a Check True activity.
  7. In the Check True Expression field, write input.Equals("BSIT").
  8. In the Check True Error Message field, write "Access Denied: Only BSIT students can proceed"

    The use case should look as the following screenshot:



This is a sample use case in which only BSIT students can proceed. If the user's input is not equals to BSIT, this error message should be displayed: