Skip to main content
Solved

Advance prototyping

  • July 21, 2023
  • 3 replies
  • 227 views

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
}
This topic has been closed for replies.

3 replies

tank666
  • 4873 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.


  • Author
  • 1 reply
  • July 21, 2023

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


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