How to implement ((X && Y && Z) || Z) conditional using Toolbox Expressions?

Why does Javascript in a Toolbox expression not work like Javascript?

I have several conditions I want to test, specifically (X && Y && Z) || Z … But Bubble doesn’t allow for conditional scoping via parenthesis so I thought I could work around that by using the TOOLBOX plugin. Unfortunately, I don’t think that’s true. For example both dropdowns in the image below are not empty but the toolbox expressions say that they are:

Am I doing something wrong or is the Toolbox plugin limited in this way? Here’s the link to my demo app

This topic was automatically closed after 70 days. New replies are no longer allowed.