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.
2 ответов
+ 1
ohhhh thank you so much but from this do you mean == is true and = is false?
+ 1
thanks soo much