I has an issue

I'm working on some fairly simple code but for some reason I'm getting an EOORO: Expected ')'! nessage. And Yes, I've checked my brackets

My code is:
 Quote:
$bgcol = htmlcolour(90, 95, 5)

Function htmlcolour($low, $high, $val)
Select
Case $val < $low
$htmlcolour = "lightgreen"
Case $low < $val And $val < $high
$htmlcolour = "orange"
Case 1
$htmlcolour = "red"
EndSelect
EndFunction



If I change the (90,95,5) to (90) then it passes along the script with out error (even though the function needs the other params)

Any help would be appreciated. This is holding me up a bit.

TIA

acmp
_________________________
Every day is a school day