I have an if, else statement for 1 object.
But I have several objects for the same if, else statement,
so that statement now needs to be copy-pasted for each object.
How can I group them first, for example as X and then run the if, else statement
only once for X in stead of running the statement all objects1, then running it for object2, etc.?
I hope my explanation makes any sense
Arj0n.
But I have several objects for the same if, else statement,
so that statement now needs to be copy-pasted for each object.
How can I group them first, for example as X and then run the if, else statement
only once for X in stead of running the statement all objects1, then running it for object2, etc.?
I hope my explanation makes any sense

Arj0n.