Visual logic for conditions

One of the ways Bubble’s visual metaphors break down is when you have to build conditions using expressions. It’s not technically coding, since you’re picking off of lists, but it’s basically just coding.

I think a function that would help maintain Bubble’s visual programming nature would be a truth table element so we can visually combine conditions. Truth table - Wikipedia

What you do is you generate a table of input conditions and output values, then let the user check/uncheck any of the boxes. That way they can see how all of the different conditions interact. Here’s a simple example:
image
So it’s easy to verify that the only case in which the button will be visible is when the box is checked is false and the custom state is true. If I wanted to have the button visible under different conditions I could just flip the appropriate boxes instead of rebuilding complex expressions.

5 Likes

I think this would really simplify a lot of logic for people. Bubble doesn’t make it easy to do this because their’s limited ways to “edit” existing “code” (we often have to delete and re-write that condition) and they don’t offer “else” type conditions so each condition must be written out, which is a bit cumbersome.

So, this approach would really simplify things. And, not just for “coding” but also for quickly understanding reviewing old code and seeing how it works.

3 Likes