Problem scenario: Sometimes variables get values you do not expect. Handling these exceptions is the mark of a good programmer.
A PowerShell variable (e.g., $contint) may have the following content:
“
second line
third line”
When a variable’s value can span lines, conditional tests act unpredictably when they use such a variable. For example a conditional test of the variable like this
…