I don't see a problem. If you assign 1 or 0 to a bool, then it becomes true or false respectively. Read the number and then assign to a bool.