Skip to main content
July 21, 2023
Solved

Advance prototyping

  • July 21, 2023
  • 3 replies
  • 274 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.**

This topic has been closed for replies.
Best answer by tank666
if (numberVar >= 10) {
  Set variable Color to #HEX
}

3 replies

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

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
July 21, 2023

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

tank666
tank666Answer
July 21, 2023
if (numberVar >= 10) {
  Set variable Color to #HEX
}
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank