Hi everyone,
I’ve encountered an issue with a workflow in Retool involving a branch block. The branch condition is set to startTrigger.data.event === 'Draw Approved'
, and there’s no else statement in the block. My understanding was that branch blocks function like universal if statements in programming languages and don’t require an else statement to work correctly.
However, when the workflow was triggered via a webhook with the event 'Draw Created'
, the branch block unexpectedly rendered as truthy and proceeded as if the event was 'Draw Approved'
.
After testing further with different branch conditions and triggers, I discovered that adding an empty else statement resolves the issue, and the branch starts behaving as expected.
This behavior seems problematic. A simple tool like an if statement/branch should work consistently without requiring a workaround, as tools like Retool are designed to save time, not add to debugging efforts.
If anyone has insights into why this might be happening or suggestions to address it more effectively, I’d greatly appreciate it!
Thanks in advance for your help.