Data visualization with own images

I have just started with Processing, I have already learned, how to load and display an image, but I can´t find how to code if…else so far…=(