I referred to browser sample lesson. I have app with two card- one with button and another has "browser" group. Well, I know, back key can be assigned two functionalities-
1. "retreat" inside the browser to go to previous page
2. "go recent or back" to go to card that opened the browser.
My question is can I create if /else function so that the back button retreat inside the browser and go to first card if it reaches the top page or layer, whatever, of the browser like this:
on backkey
If on the top layer of the group "browser" than <------This is wrong

go recent
else doAction "retreat"
end backkey
Please help.