Jump to content

if statement - order which things are checked


mosi

Recommended Posts

if (a == b && c==d && e==f)

that is proper

if you have the && it should true all the statement if one is false then all is like false

meaning the condition is not satisfy

but

if (a == b || c==d || e==f)

if one of the statement here is write its like everything is right

 

hope that helps

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.