Bools and pointers
Iām trying to create a bool that returns true or false based off of an action. For instance: This Is just something to show Itās not case sensitive Void a(){ Bool b = True; Bool success = truefalse(b); //truefalse(&b)?? If (success){ //call another function } Else //do whatever } Bool truefalse(bool* x) { x = &b; If (x) { Return x; //should be true } Else return false; } The problem is that either I get a compilation error because I canāt seem to get the hand of pointers or it goes back to the other function and it returns back to false and it doesnāt work. The only way Iāve gotten my code to work andcome back true is by doing a dowhile loop in my bool function.... but I canāt get it back to false. Any help on how to do this?