Hearthian
Hearthianβ€’5mo ago

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!!
No description
No description
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: "",...
Jump to solution
2 Replies
Solution
Gaurav Chadha
Gaurav Chadhaβ€’5mo ago
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: "",
operator: "",
value: ""
}
{
field: "",
operator: "",
value: ""
}
Docs for branch node - https://docs.buildship.com/core-nodes/if-else.
Hearthian
HearthianOPβ€’5mo ago
Thank you for the response Gaurav, I'll give it a try!