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?