Retool Branch Block Bug

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.


Hi @Exm4305 - welcome to the forums. That is strange and problematic behavior. I am definitely curious to figure out what would be happening here - @Jack_T any ideas?

Hey @Exm4305! I'll echo @jg80's welcome to the community. :slightly_smiling_face:

Did you join us in office hours recently? I seem to remember something similar coming up there. I've tried to replicate the issue but had no luck, albeit with a simple linear workflow. Can you share more information about the structure of your workflow? Or an export?