Conditions
Overview
Conditions are a gooThis section deals with features and functions in Appspotr 3 beyond the basics.
Condition
- Condition
-
A unit of logic evaluating a number of keys according to a set of rules.
Conditions are used in several places, (most importantly in the if condition type of logic patch) to create a set of rules that generate a result based on a number of keys.
Rule
- Rule
-
An evaluation using an operator to compare a key to an expected value.
Rules are used in several places (most importantly in the if condition type of logic patch) to construct a piece of logic that evaluates a number of keys by using one or more operators, which results in a final value of
trueorfalse.Rules can be combined into groups to create even more complex logic structures.
Condition Key
- Key
-
A piece of data used by rules in a condition .
Keys are used in several places, (most importantly in the if condition type of logic patch) to store data to be used in rules to generate a result of
trueorfalse.
Condition group
Operator
- Operator
-
A comparison or evaluation used in rules to compare two things (usually a keys and a value) or assert a statement.
(Relational) operators are used in used when creating rules in a condition, to give a result of
trueorfalse, by comparing two items, or by checking a property of a single item.Table 1. Relational Operators Operator
Meanin
Function
Comment
==Equals
Exact mathematical match.
!=Does not equal
Exact mathematical difference.
LikeInclusive word-match
Does the target contain the value?
Not likeExclusive word-match
Does the target not contain the value?
Different fromExact word-match
Not an exact match.
Is emptyKey has no value.
Is not emptyKey has any value.
<Lesser than
Number is lower than value.
<=Equal to or lesser than
Number is lower than value, or the same.
>Greater than
Number is higher than value.
>=Equal to or greater than
Number is higher than value, or the same.
BetweenIs the key within of the interval given by the values?
Not BetweenIs the key not within of the interval given by the values?
Remainder (%)Is the key evenly divisible with the value?
(Here % means modulo, not percentage.)
Examples:
-
In the rule
Age-(number) > 45, the operator verifies that the numberAgeis above45. -
In the rule
Name-(text) IS EMPTY, the operator checks if the text keyNamehas no value.
-