Is there a way to use two unique IDs and increment only one of them based on a 'if else' condition?