There's a comparison operator in the Math node.
For anyone wondering, in the math node, you can pick A<B and set A to $uv.x and B to your treshold.
If you want a vertical line that is centered, use abs($uv.x-0.5).
For an horizontal line, replace "x" by "y".
And thanks for your guidance!