implemented For/Else statement