is there a shorter way to write this:
if (($curZip != '') && ($curFirst != '') && ($curLast != '')) {
}
Basic syntax question
Moderator: General Moderators
Re: Basic syntax question
Not really, no.
Re: Basic syntax question
You can take the parentheses off around the comparitors:
but as far as logic is concerned, that can't be compressed.
Code: Select all
if ($curZip != '' && $curFirst != ') && $curLast != '')Real programmers don't comment their code. If it was hard to write, it should be hard to understand.