Skip to main content
Solved

Advance prototyping


Hello ! Everyone can say I can use two types of variables in prototyping for my file. The issue is that I created a variable to take an input as a text from the user but if the input length reaches or equal to 10 letters the button colour should change. is it available to do this in figma with help of variables and if/else prototyping.**

Best answer by tank666

if (numberVar >= 10) {
  Set variable Color to #HEX
}
View original
This topic has been closed for comments

3 replies

tank666
  • 4868 replies
  • July 21, 2023

You can use 4 types of variables.

It’s possible. Write such a condition and set a new value for the color variable.


i have tried it, can you help to write the condition for this


tank666
  • 4868 replies
  • Answer
  • July 21, 2023
if (numberVar >= 10) {
  Set variable Color to #HEX
}

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