I think the issue is that it's reading ${lead.previous_billing_period_previews} as a string instead of as a number, so that's why nothing is triggering the if statement, but I don't know how to switch it to a number in velocity script.
Here's what I've got:
#set( $preview = $number.integer(${lead.previous_billing_period_previews}) )
#if( ${lead.previous_billing_period_previews} > 1000 )
at $preview,
#else
nearing your previews limit,
#end
So if someone has more than 1000 previews it should display their previews, but instead it's always displaying "nearing your previews limit" I've tried several different variations, but haven't found anything that works. Any help would be welcome.
... View more