Sometimes I’d quite like `andif` to be a thing to avoid stupidly deep nesting levels.
if ( condition1 ) {
$var1 = 'something';
} andif ( condition2 ) {
$var2 = 'something';
}
Written by
in Notes.
Sometimes I’d quite like `andif` to be a thing to avoid stupidly deep nesting levels.
if ( condition1 ) {
$var1 = 'something';
} andif ( condition2 ) {
$var2 = 'something';
}
Leave a Reply