in reply to Re: guidelines for inline coding
in thread guidelines for inline coding
toif ( $cat ) { $dog='onALert'; }
its so much cleaner, easier to read. It would be even nicer if "is" could substitute for =", (sort of like SQL "is NULL") then:$dog='onALert' if $cat;
Nice! Thanks guys for the insight- I'm just syntax-surfing techniques to pretify my code...$dog is 'onALert' if $cat; $dog is 'sleeping' unless $cat;
|
|---|