hello,
i do need to implement a counter to control the financial flow of funds.
i need some help to find a good algo.i have double code in my algo which i want to get rid of.
this is my algo
if(! errorflag && messagetype != void)
update the counter
switch(messagetype)
case void:
storno.
if(counter == counter)
update the counter, set errorflag
case transaction:
transaction
if(counter == counter)
update the counter, set errorflag