-
AE If else expression for sorting elements?
Hi everyone,
I am working on a project for some animations about election in After Effects CC.I have all the comps,sub comps and elements for all political parties ready (i.e. photo of the candidate, party logo, etc). All animations (bars graphs, seat count, etc) are linked to two sliders for each party, one for percentage of votes, one for number of seats.
I am pretty new to expressions but what I am trying to achieve is this:
Based on the percentage of the votes and on the number of the seats gained I want the sub comps for the parties to auto arrange based on the ranking.
To make it clearer, if Party C gains the most votes, I want it to be on top, followed by the second best, etc etc.I suppose I should use an If else expression, as I would do in excel for example, could somebody point me to the right direction on how to do this? Or maybe even suggest a better option?
Thanks very much for your help,
Regards.
