http://blog.teknkl.com/tag/velocity And all my posts here on it. The problem with trying to learn Velo is that nobody out there (except for me, that's one of my bizarre specializations) focuses on it within a Marketo context. Velocity/VTL is a venerable, stable, and incredibly useful language, but used primarily for web page templating -- and even more confusingly, used by Java programmers, who often have access to extend the VTL language by adding their own methods, while within Marketo we have only the base language and tools. I'm looking at this and it makes no sense to me what exactly it's doing. declare a variable to hold the last completed Job (not actually necessary in VTL, but looks cleaner) get size() of the Job list last index of the list is size() - 1 walk backward through the list from size() - 1 to 0 when you find a Job whose currentstatus is "completed and paid" set the last completed Job to this job exit the loop
... View more