I’m on a clean project where I need to use 2 or more key check blocks
KEY CHECK 1
KEYCHAIN Failure OR
KEY "Color"
KEYCHAIN Success OR
KEY "Animals"
in the first one it checks if it contains the word Color returning false and Animals returning true.
and at the end of the project I need to use another CUSTOM KEY CHECK that contains 5 conditions.
- Cat
- Dog
- Bird
- Giraffe
- Lion
so I need to use a CUSTOM KEY CHECK returning that “IF” the number of animals (cat, dog, bird and giraffe) is greater than 0 it returns "[Animals] ok" (this is my custom status).
However, if (lion) is greater than 0, it will return "[Animals] lion detect" (regardless of the amount in the other animals mentioned above)
here’s how I was using it, but it keeps returning the status of the first KEY CHECK 1 "SUCCESS"
CUSTOM KEY CHECK
#Animals KEYCHECK BanOnToCheck=FALSE
KEYCHAIN Custom "[Animals] ok" AND
KEY "<Cat>" GreaterThan "0"
KEY "<Dog>" GreaterThan "0"
KEY "<Bird>" GreaterThan "0"
KEY "<Giraffe>" GreaterThan "0"
KEYCHAIN Custom "[Animals] lion detect" OR
KEY "<Lion>" GreaterThan "0"
I hope I explained my doubt .