Set a conditional for the index