quote:
Originally posted by Matty
Blah its if he knows who is signed in on their phone he can put the email there, so if the email isn't one of those people then stylize the text.
true, but they're not always online using their phones.
aside from that, using this statement
code:
if (Email != "johndoe@hotmail.com || Email != "johndoe2@hotmail.com){
// stylize text
}
will ALWAYS execute the code, since if Email has value "johndoe@hotmail.com" then it would be
code:
if (false || true) // thus TRUE
{
// execute code
}
so there's no point in having an if-statement this way because if you != 1 variable against more than 1 value, it will always return true.