Animation Nodes Flow Controll?
Given the list of objects, their classes (0, 1, 2), and sizes of each class. We can evaluate the sizes list at the classes list and use the output as the scale as follows: