in reply to Basic programming question

I would go with (B), since the else bit is merely assigning AM to $T.

I don't know whether it's programmtically better. I've code like that too and I use style (B).