I think it would be easier for you to create boolean triggers based on the specific variables that make up your Line.
Then, you would have true or false...long or short.....triggers....and you can get rid of the word line entirely.
Keep it simple.
I hope that helps.