Post marked as solved
Post marked as solved with 1 replies, 137 views
Hello! i was wondering how to add an if statement in an if statement. Here is my code:
At the top:
buttonPressed = true;
Below override func
if buttonPressed {
Text.isHidden = false;
buttonPressed = false;
print("Text is now visible!")
print("button has been pressed 1 time!")
if buttonPressed {
Text2.isHidden = false;
print("button has been pressed 2 times!")
}
Thanks!