How do I discard a vertex in a vertex shader? I read there is a ‘discard’ command in the fragment shader, but not the vertex shader.

I am drawing lines and am running a log() function on the points via a vertex shader. I need to throw away the point if the value is <= 0 since the log is not a number.

Thanks