
Every Event needs to have a Condition linked to it, where the Condition
is a precondition in which to trigger an Event. Below is a list of
the Conditions functions as part of the Rules tab:
- No Condition - For this condition, no matter if the condition
is true or false, the system will execute the true action. For example
No Condition is equal to the true condition. In most cases it will
return a true result for the condition.
- Widget Function - Each widget has its own judge function.
In most conditions, the relative function will return a Boolean value.
So the system will call relative true or false action according to
the return value.
- Widget Property - this condition is the same as the Widget
Function condition type, there will be a return value. This condition
will return two value types : String and Boolean. Usually, system
will call true or false action according to the Boolean value. But
now there is a string type return value, so how the system calls relative
action. Only Boolean type action existed, not String type action.
In view of this situation, the system will execute the true action
by default, once the condition return value is string type.
- Expression - this is a complex condition type. If the scenario
requires a complicated operation, the user can select this condition
type. The outer operator is arithmetic, which can only include the
following operators addition, subtraction, multiplication and division
within the iterative expression. But if user chooses a logical operator
in outer expression, there will display logical and arithmetic operators
in the iterative expression.
- Besides in the iterative dialog, there also exist a Constant
condition type in the dialog window, where the user can create a constant
value for a given condition.
Note: No matter which type condition, the tooling has validated. In
situations where an error occurs an error message will prompt the
user and alert them to the issue.