PDA

View Full Version : Multiple logical negations


Graeme Hackston
08-13-2002, 05:45 AM
How would I write multiple logical negations?

This is an (incorrect) example of what I'm trying to do:

if (!a || !b || !c) {

Skyzyx
08-13-2002, 05:47 AM
What? More info! What you did was correct...

beetle
08-13-2002, 05:58 AM
Yup. Looks fine to me.

Are you getting undesired results, Graeme?

Graeme Hackston
08-13-2002, 06:17 AM
Thanks for steering me in the right direction guys. I was declaring one of the variables true in another function.