Skip to main content

Expression Based Variables


Phil_Larsen

I’d like to be able to enter equations referencing other existing variables as the value of another variable.

ie:

x = y * 100

You’re able to set variables with expressions with an interaction, but having the variable with that information built in isn’t currently possible as far as I’m able to tell. Anytime I reference another variable I can’t add anything else to it without breaking the link.

This topic has been closed for comments

5 replies

Louis_Harden-Bull

I agree this would be great!


Absolutely needed. Designing fully a scalable UI isn’t really possible so developers need to come up with their own ratios. This has lead to many implementations that aren’t exactly according to spec.
If you could just say that, e.g., an element width is 40% of the frame width, which can now thankfully be from a variable, you can just design the spec into the plan directly.


Peter_Uithoven

Duplicate of Using expression as a variable's value ?

Let’s centralize the upvotes.


Phil_Larsen
  • Author
  • Active Member
  • 130 replies
  • July 1, 2023

Thanks! it got added to that thread on one of the comments and I upvoted that thread.


  • 0 replies
  • September 29, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings