trying to return something from a function

BlitzMax Forums/BlitzMax Beginners Area/trying to return something from a function

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

	Function InsideQuad(px:Float, py:Float, x0:Float, y0:Float, x1:Float, y1:Float, x2:Float, y2:Float, x3:Float, y3:Float) 
		If dot(x0, y0, x1, y1, px, py) > 0
			If dot(x1,y1,x2,y2,px,py)>0 
				If dot(x2,y2,x3,y3,px,py)>0 
					If dot(x3,y3,x0,y0,px,py)>0 
						Return True
					EndIf 
				EndIf 
			EndIf 
		EndIf 
	End Function


keeps coming up with an error

compile error: Function can not return a value

what am i doing wrong here?