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?