i have two functions f1 and f2. In f1 i am calling f2.
f2 checks for some condition and if its true then it exits. so what i want is if f2 exits then along with f2, f1 must also exit
Printable View
i have two functions f1 and f2. In f1 i am calling f2.
f2 checks for some condition and if its true then it exits. so what i want is if f2 exits then along with f2, f1 must also exit
take a public variable and before exit from f2 set its value to true and in f1 check that variable if that is true exit f1 as well.
set f2 to return the Boolean value and f1 to work on that value