Cannot determine if a cookie is present or no

Cannot determine if a cookie is present or no

BLOCK:Keycheck
banIfNoMatch = False
KEYCHAIN BAN OR
DICTKEY @data.COOKIES DoesNotExist “bbsessionhash”
KEYCHAIN NONE OR
DICTKEY @data.COOKIES Exists “bbsessionhash”
ENDBLOCK

Output when Cookie isn’t present:

Keycheck (CheckCondition) <<
Matched key {(bblastvisit, 1737642075), (bblastactivity, 0)} Exists bbsessionhash

[Executing block Hash] KeyNotFoundException: The given key ‘bbsessionhash’ was not present in the dictionary.

Why the key check says bbsesionhash exist? It doesn’t.

Instead of exist try to check with “Contains”

1 Like

HasKey/DoesNotHaveKey worked as needed.