Hi and welcone to NR forum.
couple of things here...
- in order to make code more readable an importable it is important to post it between two sets of three backticks - ``` - see this post for more details - How to share code or flow json
then please edit your code
- you cannot perform AND logic like that (due to mesages arriving into the "and gate" at different times
See this article in the cookbook for an example of how to join messages into one object.
Then you'll be able to perform the AND logic.