index: if statement