Set orders with velocity
I am looking to write up some velocity script for a new project. We want to send out dynamic emails to our partners that have outstanding onboarding tasks to complete. We want them to receive an email every few days that will list 3 (or less depending on how many tasks they have left to do) tasks that they haven't completed and link them to the dashboard where they can finish them. I was thinking that in velocity I would set an order to the 8 tasks (these will be boolean fields marked true or false depending on completion) and have it display the ones that are not complete in the email, but I'm not sure how to cap it 3 tasks. Also, want to make sure that by setting an "order" to the tasks, it will show the most important tasks to list first (hope that makes sense). For example, if they have 5 tasks left to do, I only want to display 3 of the most important ones in the email.