All and Not All Rules ¶
These rules verify that a property contains all of or not all of a repetition of the specified chunk.
Note: This check is not case sensitive.
All ¶
Verifies that the property's value contains all of the repetition of the specified chunk. For example, if checking for ab, ABAbab will pass, while ababcabab or aba will fail.
Syntax
1 2 | check <property String> all <chunk String>; check <property String> all <chunk String> if present; |
-
property - The property being checked.
-
chunk - The value that the repetition should consist of. If the ticket's property value is empty, the Rule will fail.
Example
1 2 | check "SubscriptionName" all "ab"; check "SubscriptionName" all "ab" if present; |
"SubscriptionName" property consists of ab repetitions.
Additional Examples
| Property Value | Rule Parameter | Check Result |
|---|---|---|
ABab |
"AB" |
OK |
"ABCDAB" |
"AB" |
FAIL |
Not All ¶
Verifies that the property's value contains not all of the repetition of the specified chunk. For example, if checking for ab, ababcabab or aba will pass, while ABAbab will fail.
Note: This check ignores case.
Syntax
1 2 | check <property String> not all <chunk String>; check <property String> not all <chunk String> if present; |
Parameters
-
property - The property being checked.
-
chunk - The value that the repetition should not consist of. If the ticket's property value is empty, the Rule will fail.
Example
1 2 | check "SubscriptionName" not all "ab"; check "SubscriptionName" not all "ab" if present; |
"SubscriptionName" property does not consist of ab repetitions.
Further Examples:
| Property Value | Rule Parameter | Check Result |
|---|---|---|
ABA |
"AB" |
OK |
ABCDAB |
"AB" |
OK |
ABAB |
"AB" |
FAIL |