Basically I only want it to continue if the value $3.foundData comes back at false and if there is some kinda data in $8.projects.[0].toggl_client_id (so it’s not empty). But with the filter I’ve put in there as per the screenshot
It still continues when $3.foundData is returning true and node 8 client ID has data in it.
I would have expected the not($3.foundData) should make that false and because of the and compare the whole thing would come back as false. But it seems like the second one is overwriting the first false return.
A good way to check what exactly each part of your expression returns - you could add SetVariable node and place few variables inside with different part of your expression
Found data should be boolean?
Unless it’s interpreting it as a string for some reason? But if I remove the “and not(”… then it seems works as just not($3.foundData)
That’s the result of the testing. So it seems to be detecting $.foundData as booleen properly and converting it to false.
And it seems to be detecting that the $8.project.toggl_client_id is not empty.
So in this instance its getting
false and true
So in my head that should come back false because they’re not both true (with that wholestring variable in the latest screenshot). Kinda like if I wrote a javascript if statement then saying if(true and false) I’d expect that to return false.