Hello everyone,
I am a little bit confused as the the "correct syntaxt" for an if statement, as i frequently see sites use either...
Sample 1:
Code:if (someString != "hi") {//do stuff}
Sample2:
i see the first one more often...is there a write or wrong, or just preference...Code:if (!(someString == "hi")) {//do stuff}
Thanks, Justin





Reply With Quote