To make your construction correct, it would look like
a <= 499 || a == 499
But <= means less than or equal. So you don't need the ||
To make your construction correct, it would look like
a <= 499 || a == 499
But <= means less than or equal. So you don't need the ||