I want to create a button that will launch a previously launched function. those. I press button “A” to start function “A”, then press button “B” to start function “B”. I want a button that allows the user to return to function A by pressing the back button.
I thought that a global variable might contain previous statements, but it would not work, since every function executed would overwrite the stored instructions. here is some psuodo code to explain what i mean
var globalvar;
globalvar = functionA;
function B { run globalvar};
source
share