Sometimes I’d quite like `andif` to be a thing to avoid stupidly deep nesting levels.

if ( condition1 ) {
  $var1 = 'something';
} andif ( condition2 ) {
  $var2 = 'something';
}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.