How do I get the x and y coordinates out of Input.mousePosition?

The question is pretty much self-explanatory.

I am looking for a way to get the x and y coordinates out of the current mouse position but can seem to find a way to ‘isolate them’.

Also, is there a way to record only the initial mouse position and not having it record while the mouse is down?

Thanks in advance for the help :wink:

To retrieve

   float x = Input.mousePosition.x;
    float y = Input.mousePosition.y;

and with mousedown

if(Input.GetMouseButtonDown(0))
{
    float x = Input.mousePosition.x;
    float y = Input.mousePosition.y;
},

Thank you! I thought there might be something like that, but was to busy to search the documentation!