Skip to main content
Question

Can I set variable based on a component's property value?


Hsiao_Hugo

I have a checkbox interactive component imported from the design system that can swap between checked & unchecked.

I was trying to add a conditional and set variable so one of my textboxes could show
XYZ or ABC based on the checkbox’s property value (checked and unchecked). But seems the “if” can’t access the component’s property value.

Can advanced prototyping do it now, or do I still need to create another local boolean variable to control it?

This topic has been closed for replies.

2 replies

gilgongo
  • 51 replies
  • July 11, 2023

When you say “the ‘if’ can’t access the component’s property value” what do you mean?

I think you should be able to assign a text variable to the text in the checkbox unless that text object is being used as a property in the component.


  • 0 replies
  • August 10, 2023

This topic was automatically closed 30 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