The IF node is driving me crazy. What am I missing. Look at this:
- hasMore is boolean and set to true
https://preview.redd.it/kp5hnb4ml7ng1.png?width=1824&format=png&auto=webp&s=fd932af7c3b2a83ce4554c9242136fb22994ab95
The IF condition checks if {{ $json.hasMore }} is boolean true. Why does it outputs in the false Branch ?
https://preview.redd.it/l3jbe2ail7ng1.png?width=1906&format=png&auto=webp&s=62ebac7d8ff54f9f9c110f16b9cf1399ad221b17
2- Let's try something else. Let's use a different boolean condition, is equal to true. Still goes in the False Branch
https://preview.redd.it/zrsdsindm7ng1.png?width=1891&format=png&auto=webp&s=33c7c343c8c966990bdc7b107b455c8b4d619345
3- OK, maybe n8n gets confused about {{ $json.hasMore }} type. So let's try something else, a String comparison with the string "true". Still ends up in False Branch:
https://preview.redd.it/zdfke9eom7ng1.png?width=1854&format=png&auto=webp&s=05cab2377982837f2cd5057e5f7ebe59277f1576
4- OK, OK, I'm resourceful, let's try something else. Form the input, I also have a string variable named isLast, which has the following string value: "no_as_a_string". So let's try another string comparison.
https://preview.redd.it/7m1ibzk1n7ng1.png?width=1885&format=png&auto=webp&s=0362adbfac80ea5b92d5507cbb5c998d3fba578c
And we can confirm that value of isLast is indeed "no_as_a_string"
https://preview.redd.it/49obmnrgn7ng1.png?width=1804&format=png&auto=webp&s=9b672bab82f8e70f0979a2271076cc1739674c7f
Still no joy, still getting in the False Branch
https://preview.redd.it/y060wj1on7ng1.png?width=1855&format=png&auto=webp&s=0a478f5fb9ef10a3ad71cf82479f30811487c462
5- Exists? False Branch
https://preview.redd.it/aurby7ewn7ng1.png?width=1893&format=png&auto=webp&s=a5b49f4a3c2279b7b948cdbe9b652594e214b9b0
6- Does not exists? False Branch
https://preview.redd.it/jlpu5vz1o7ng1.png?width=1904&format=png&auto=webp&s=8aa88df68b8d0eb81d2c8abc0a118a80235930ca
7- Does 1 equals 1? Nope
https://preview.redd.it/1rwepu4go7ng1.png?width=1900&format=png&auto=webp&s=a39ea15c1c3dae3156bc65dc6b8a54c8dbf8423b
That's it, I give up ;)
Anyone can help ?