How to check that LMB is held and mouse is moved up? (IF conditional)

How to check that LMB is held and mouse is moved up? (IF conditional)

How would I create and IF .. ELSE statement using the following check:  the LMB needs to be pushed down while the mouse moves up?

I assume that mouseup() and mousemove() need to be used.

but putting them in an IF conditional I am not sure about... not sure how to make the check to ensure both are true.

can someone help please?