This works just fine for me.
Is this all the code or is there something extra?

 Code:
Break on

$bgcol = htmlcolour(90, 95, 5)
?$bgcol
Sleep 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
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.