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
true
orfalse
.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
true
orfalse
.
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
true
orfalse
, 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.
Like
Inclusive word-match
Does the target contain the value?
Not like
Exclusive word-match
Does the target not contain the value?
Different from
Exact word-match
Not an exact match.
Is empty
Key has no value.
Is not empty
Key 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.
Between
Is the key within of the interval given by the values?
Not Between
Is 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 numberAge
is above45
. -
In the rule
Name-(text) IS EMPTY
, the operator checks if the text keyName
has no value.
-