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:
Code:
if (!(someString == "hi")) {
//do stuff
}
i see the first one more often...is there a write or wrong, or just preference...

Thanks, Justin