Welcome!
Read more about conditional statements on Wikipedia.
See example code for creating rollovers below.