How can I get this script to run in Rhino common vs rhinoscriptsyntax?

rs.PointInPlanarClosedCurve(pts[i],Curve) returns True and False

but

rg.Curve.Contains(curve, pts[i], plane, 0.001) returns “Inside” and “Outside”

How do I change the logic in this to make the Rhino.Geometry work?

if boolean[i] == True:

ptIn.append(pts[i])

if boolean[i] == False:

ptIn.append(pts[i])

Should I be checking if “Inside” or “Outside” are in boolean first?

I am using the ghPython node in grasshopper.

import Rhino

import random

pts =

for i in range(0,4):

pt = Rhino.Geometry.Point3d(random.uniform(0,10), random.uniform(0,10), 0)

pts.append(pt)

boolean =

ptIn =

ptOut =

for i in range(len(pts)):

pt_in_or_not = Rhino.Geometry.Curve.Contains(curve, pts[i], plane, 0.001)

boolean.append(pt_in_or_not)

```
#Contains function returns "Inside" and "Outside" NOT True and False
if boolean[i] == True:
ptIn.append(pts[i])
if boolean[i] == False:
ptIn.append(pts[i])
```

ptIn_Out = ptIn

ptOut_Out = ptOut