my sugestion:
'..............................................................
cls
result = 1
port = D0
timer 100, [branch]
wprint "<p> Click to Exit <br>"
button "Exit", [TestExit]
Wait
[TestExit]
timer 0
Wprint |<a href="./edit"> Edit</a>|
end
[branch]
io(po,port,result)
result = 1- result
wait
'............................................................
Thanks for MMISCOOL (ESPBasic interpreter & examples) & Luc Volders (ESPBasic examples).
F. Leal