Page 1 of 1

how to order five counters?

Posted: Thu Jun 26, 2014 11:28 am
by Juan Carlos
I have five 5 counters, a, b, c, d, e they are count a=a+1 etc., I have them to read the times that I click in several buttons, but I want order the buttons more used, I have the doubt to use the classic system if a>b, if a>c, etc, If b>c, etc., etc., there is method more fast and without so code with "if" instruction.

Re: how to order five counters?

Posted: Wed Jul 02, 2014 6:43 pm
by airsoftsoftwair
Are you looking for something like

Code: Select all

If a>b And a>c And b>c And ...
?

Re: how to order five counters?

Posted: Thu Jul 03, 2014 3:24 pm
by Juan Carlos
airsoftsoftwair wrote:Are you looking for something like

Code: Select all

If a>b And a>c And b>c And ...
?
Hum, I thhough that this compare crashed the program, I'll test it, thanks.