how to make a if starment?

when i press on a sprite i want to check the value of a variable, but i can’t find any action for this

By adding events with conditions, I think, and then adding appropriate actions. How to do that is explained in details in tutorials, here, for example:
wiki.compilgames.net/doku.php/en … rtutorial2

Example:
How to test for conditions:
drive.google.com/file/d/0B4iAIC … sp=sharing

At the beginning of the scene variable var=0.
If mouse cursor is on the object, mouse left key is pressed and variable “var” equals zero, then change color of the object to red and change value of variable var to 1.