10.06.2017, 14:04
There are vehicleids and then there are modelids. A single vehicle has both a vehicleid, which is unique and a modelid, which is not unique. Don't confuse them. Furthermore, you cannot check a range of values like this:
Each operand is self-contained. Meaning the above will basically compile to:
And as a result that statement will always be true. You should check as follows:
However I would advice using either a switch or an array if you intend to add more items to that list otherwise you'll end up with very long lines which are really, really ugly.
PHP код:
if(vehicleID == 596 || 597 || 598 || 599 || 523)
PHP код:
if(vehicleID == 596 || true || true || true || true)
PHP код:
if(model == 596 || model == 597 || ...)