[Early access beta] New expression composer for more intuitive logic!

@grace.hong The more I’ve used this myself, I am starting to prefer the old parenthesis… Case and point:

BEFORE:
Screenshot 2023-09-18 at 10.45.42 AM

With new Expression Editor:
Screenshot 2023-09-18 at 10.45.55 AM

I’ve found myself getting lost in the new expression editor – And in agreement with others that the new expression editor IS a step forward… but hoping we can have the parenthesis back.

9 Likes

Agree with the other voices here. @grace.hong

Parentheses “()” and brackets “[]” are the standard for grouping for a reason, they are intuitive, and visually easy for the brain to parse.

I get the reasoning behind the marks, but sometimes new isn’t better. Let’s not reinvent the wheel here.

3 Likes

See the other issue is there’s WAY more brackets than there are parentheses because now ‘atoms’ have brackets.

You absolutely have to swap the brackets for parentheses to highlight operation order, and then maybe you can keep tiny brackets for individual atoms. But the issue here again is like I’ve said before… the tiny brackets mean multiple things now being atoms + parentheses and on top of that they’re teeny tiny.

I can’t see anyone in the thread that would vote for brackets over parentheses for order of operations….

5 Likes

Agreed with parenthesis > brackets.

The biggest win we could have is having an ‘expanded’ mode for dynamic expressions. That tiny field window can be hard to work with at times.

7 Likes

So true, hadn’t even considered it but seems so simple…

1 Like

Yes I tried to use the new expression composer for a day recently and I couldn’t even process what was going on

Maybe the expanded view like @MattN suggested could allow for visual linebreaks in the expressions, so long expressions aren’t just a giant paragraph

I use hero icons in my buttons so my button text is [hir]whatever[/hir]

Not a huge deal, but with the “/” shortcut, I can’t find a way to add icons in buttons, or text. trying to close the shortcode for the icon just pops up the dynamic values dropdown.

Screenshot 2023-09-18 at 6.47.36 PM

1 Like

@agiledood… Adam’s got your back.

3 Likes

beauty!

  • Parentheses for operation order
  • Tiny brackets for atoms
  • Expandable edit area
  • Lines appearing only on hover
14 Likes

this is the right answer @felipe.haidar

Agree!

This is the way.

6 Likes

How do we use the new expression composer to be able to calculate a denominator?
image

I want 7/(7-1) = 7/6 and not (7/7)-1=0

I don’t think this was even possible under the old composer but why not just use 7/6? If this is just an example and you want to use dynamic data, you do

7/(Dynamic data - 1). You can’t do the opposite direction, so 7/(-1 + Dynamic data) doesn’t work. Dynamic data must come first :slight_smile:

well, even if we assume that this “new expression composer” works well and that it does not represent any bugs, as soon as we activate it, the editor becomes super slow and makes dev almost impossible

Just turned on the new expression builder today… Clicked on the first expression and got an error that bubble couldn’t render the display…

It’s been a while now and you’d think that the new expression builder would be able to work past the first click.

2 Likes

Yes it’s meant to be dynamic. It’s supposed to be DynamicDataA/(7-DynamicdataB)

DynamicDataA/((DynamicDataB*-1)+7)

1 Like

Gotcha. Let me try that. Thanks.