Is there a way to increase the Lots size continuously based on a given condition?

if(condition)
Lots = Lots+1; //Lots++
else
Lots = 1;

The above doesn't continuously add to Lots.

I've looked at using TradeLots but no luck. Also using Lots in a vars series didn't work either.

Any ideas?