vendredi 26 mai 2017

swift if statement

I have an if statement in swift that I can not figure out how to set up. I want to check two variables and check if they do not equal a certain value, The variable that does not equal the certain value should be set to a new variable.

if (message.ReceiverId != self.loggedInUserUid  || message.senderId != self.loggedInUserUid) {

//Print the variable that is not equal to the loggedInUserUid
//and set it to a variable.

}

Aucun commentaire:

Enregistrer un commentaire