displaying images in swift

Hi all, would someone please give me a pointer on how to display an image or collection of images inside of an if statement. I am making a guessing game and want to display an image when an action occurs such as when the right number is guessed or when they guess too high or too low. Thank you for any pointers