Javascript does work with logical operators. This is how you would go about doing it...

switch (true)
{
case (c < 0):
statement;
break;
case (c == 0):
statement;
break;