0
Why does the Bool value not changing for the parent function?
3 ответов
+ 4
Whenever you click on button state is assigned false again
+ 3
It is changing.. You are outputting it before setting it to true. And as Abhay said, if you click it again.. It is set to false again..
https://code.sololearn.com/WF9BISf866Xs/?ref=app
0
Yeah didn't consider that... thanks