Condition based on Showing Image

Jhoshua Continanza shared this question 3 years ago
Answered

I have an image that is initially hidden, I setup an interaction to show the image when a label is clicked. Now I want to add an condition where a button will link to another page but ONLY of the image that was initially hidden is showing. How do I add an condition based on an image showing?

Comments (4)

photo
1

Hello Jhoshua,


In this instance, you could have a variable hold a value associated with the image's state (hidden or showing). When the label is pressed, you can simply set the value of the variable to showing. Then, a condition can be created to link only when the variable is equal to showing. If you would like to send your prototype file to jim.support@justinmind.com, we would be happy to demonstrate this.


Best,


Luisa

photo
1

Actually in the latest version of Prototyper it's very simple: you can make the expression like this:


If image is visible


- go to page A


Else


- do nothing

photo
1

I'm having a similar issue,


Until now I have done this


When TAP a Widget AA


If image XX is visible


- hide


And this works fine, but now after few interactions I want that pressing a Widget BB image XX is shown again only if image XX was hiden while tapping Wideget AA


How can I do it?

photo
1

You can do it by setting a variable and conditions


On widget AA:


- if XX is not visible - show XX


- if XX is visible - hide XX and set variable "Hidden" to: 1


On widget BB


- if variable "Hidden" = 1, show XX