Something to PICK YOUR BRAINS ;>/

hi fellow Trons,
I have a basic request, I am looking to implement below logic in tradetron:

     if( condition 1) counter++;

    if(counter ==2 && condition1) then BUY or SELL;

Is it possible to implement this??

Thanks,
Farty

did you try to set variables and use it? is it not working? how many times condition 1 will met?

I tried set variable, but there is no option to increment the set variable(atleast i couldnt find in the documentation).

Condition 1 will occur multilple times, but the idea is to take the trade 3rd time it occurs.
Do you think there is a different way to implement the same logic?