begin on same line as for and if