0
I cant understand this codes meaning in swift help me please
in THIS CODE âvar gender = 1 gender == 0 ? print("male") : print("female")â when I run the code it prints femalE I TRYED PUTTING DIFFIRENT NUMBER BUT STILL FEMALE HOW DOES THIS WORK? PLEASE EXPLANE IF YOU KNOW, THANKS.
4 Answers
+ 1
ohhhh thank you so much but from this do you mean == is true and = is false?
+ 1
thanks soo much