This maybe sound strange to you but I\'m too lazy to write everytime like
if (threadAlive) { threadAlive = false; } else { th
This would do it:
threadAlive = !threadAlive;
The correct term is Toggle