I’m new to rhinoscript, I started yesterday

Let me try and see if I can explain what I’m doing.

I have a Mesh, from that mesh I need to find the highest point and the lowest point on that mesh.

I started by using the command: MeshVertices and getting a 2D array of all the points in the mesh, so far so good I think.

Now I need to find the Highest Z value of any point (called it “a”) and the lowest Z value of any point (“b”) as integers

so them I can use addpoint(0,0,a) and addpoint(0,0,b) and create a line on the Z axis

My question is how to find a and b, I have no idea.

Hope someone can help me