Conditional statements for Static index