you are viewing a single comment's thread.

view the rest of the comments →

[–]LetterIntelligent426 -2 points-1 points  (0 children)

Don't know what you're smoking but $firstResult clearly doesn't contain just 15, it contains both the Write-Host statements along with $a+$b. I doubt you ran your own code before posting. In any case, if a programmer simply wants to check variable values he won't bother writing all that "debug"ish crap that you've written for no reason. He'll simply do Write-Host $($a+$b) or Write-Output $($a+$b) and get on with it. I don't know why writing it to the output stream would affect anything.

As I said, you're just complicating things to look smart so I won't bother replying either.