If you literally mean a "line" and not a row or section, you can create a text box or border around a field instead of inserting a line. Let's say you choose the text box route. Insert it, then select it and choose "change border." You can then select the line--bottom, top, right, left--and the border color. Then select the X+2 button and enter your conditional criteria.
-LB