if (x == y) then { do something; } while ( x < y) { x = x+1; }