Hearthian - Good evening π I have a question ...
Good evening π I have a question on a simple branch node - any help would be greatly appreciated! I'm trying to get a flow which either performs a collection query (if the input does not contain ".com") or gathers information from a url (if the input contains ".com"). Ref the images attached. However when I try the code below, I have the following errors:
-Expected an identifier and instead saw 'root'.
-Expected an identifier and instead saw '0b8611c3-d6fe-445d-8751-292210a46e5c'.
-Expected an identifier and instead saw 'queryValue'.
I'm not a coder so I don't know what the issue is. Any help would be amazing!!
Solution:Jump to solution
Hi @Hearthian, for the screenshot it shows an error on the branch, the function won't execute directly, instead you can change your condition to
(x)Value.includes(.com)
For the error on the error on the Firestore node, ensure that filter has correct values, the filed should not be empty, if you want it empty you can have it like:
```{
field: "",...2 Replies
Solution
Hi @Hearthian, for the screenshot it shows an error on the branch, the function won't execute directly, instead you can change your condition to
(x)Value.includes(.com)
For the error on the error on the Firestore node, ensure that filter has correct values, the filed should not be empty, if you want it empty you can have it like:
Docs for branch node - https://docs.buildship.com/core-nodes/if-else.Thank you for the response Gaurav, I'll give it a try!