Jump to content

[SOLVED] Help with or's in if statment


Stephen68

Recommended Posts

Aside from being a bit hard to read that is pretty much it, you could do this:

if (!$field == "month" ||
     $field == "day" ||
     $field == "deadline_year" ||
     $field == "submit2" ||
     $field == "submit33")

if you find that easier to read then go for it, but what you posted is my preference.

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.