How to create an adjustable set of lines?

Sorry I meant the if node. Layering a few if nodes with black and white and a few adds and multiples should work.