Skip to main content

Conditionally set a component prop using a conditional Variable rule

  • October 16, 2023
  • 1 reply
  • 237 views

Jonathan_Summers-Muir

Be able to set a component prop, with a conditional rule, based on a variable.

For example, have a variable called category which is either going to have a value of “metal” or “house”.

Then for my component, I want a conditional rule such as IF category == "metal" then property == "foo".

Also accept ELSE, IF ELSE statements.

1 reply

djv
Figmate
  • Community Support
  • November 1, 2023

Thanks for the feedback!

We’ll pass this onto our team for consideration.