more than/ less than programming issue

hi guys,

i want to write while(counter is more than or equal to 0 but no more than 4)

would it be something like this:

while(counter >= 0 || counter <= 4)
{
}

cheers,

No you have used the OR you want the logical AND which is &&