Thanks anyway for attention !
How I say :
Re: Problems with my "intelligent timer"
I think it's a problem with the title of my topic ... since me I am not intelligent enough to solve this !
...to note the use of quotes in first row...
This is my working (in Proteus) code, i will try it tomorrow :
Code:
MAIN:
  led1=0
  led2=0
  pause 50
if but1=1 then
  cnt = cnt+ 1
           if cnt = 1 then     
                while but1=1
                gosub memo
                wend
           endif

           if cnt = 2 then                         
                while but1=1
                gosub check
                wend
           endif
              
if cnt > 2 then cnt=0               
endif 
Goto MAIN

'==================================================
check:          
    high led2
    pause 500
    low led2
for num = 0 to 500   
    pause wipper 
    call breking           ' this is the new part added !!!
next num    
return

breking:
if but1 = 0 then 
wipper = 0
goto main
endif
return

memo:
high led1
    wipper = wipper + 1    ' counting in 500 ms steps                
    pause 500
low led1
    pause 500
RETURN
Best regards !