I want an if statement where two booleans are true, in order to navigate to another artwork, when a button is clicked.
In my design, when the user clicks “match file” I want my prototype to check first if two of the booleans are true, before it takes me to another artwork.
so, inside of my component, I created a conditional interaction:|
if boolean1 === true and boolean2 === true
navigate to “flowerror”
else
navigate to “home”
when i copy and paste this component in my art work and click on play to see the prototype, it doesnt work. what am I doing wrong? please advice.
When and where are you setting the booleans to true or false? It could be one of those booleans is not being set to true before the on click is called.
Thanks for sharing. In your example, I see row1 being set, but where do you set the variable “row2” do you use another checkbox for that? If you share the file view only, I could dig in more to see what’s up.
yes, I created two separate checkboxes and gave them each a boolean variable. checkbox1 has row1 boolean and checkbox2 has row2 boolean.
Let me recreate the problem on another Figma prototype so I can share it since this one in particular has proprietary info.