if not bigger then.

I need a if statement which states
if ( tijdvak = not smaller then 0 and not bigger then 5)
tijdvak is a variable

I tried to solve it by

   if ( tijdvak !<0 && tijdvak !> 5){

}

the problem is that this gives me errors.

Expecting ), found !
unexpected token: <
‘;’ expected. Insert a semicolon at the end

and it goes through with every symbol, except the numbers.
Unity does not want to recognize that my code does not end at the first !
Is this a bug, or am I doing something wrong?

The weird part however is that the first time I tried this, it worked, now Unity doesn’t let me.

Is there any rationale behind using those comparisons? If not, just use

if  (tijdvak >= 0 && tijdvak <= 5){
    ...
}

See the MSDN docs for the standard comparison syntax.