PennController for IBEX › Forums › Support › Show different pictures/videos when an image is selected in the selector › Reply To: Show different pictures/videos when an image is selected in the selector
May 16, 2022 at 3:33 pm
#8191
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi,
Use .test.selected
:
newSelector("answer") .add(getImage("pic1"),getImage("pic2")) .shuffle() .keys("F","J") .frame("solid 5px purple") .log() .once() .wait() .test.selected( getImage("pic1") ) .success( newImage(row.gif1).print() ) .failure( newImage(row.gif2).print() ) , getCanvas("myCanvas").remove()
Jeremy