I have a weird syntax issue relating to nested if statements.
This code errors:
if(true):
if(true){
var_dump(true);
}
else:
var_dump(false);
endif;
This code does not error (note the added ;):
if(true):
if(true){
var_dump(true);
};
else:
var_dump(false);
endif;
What gives?
;is expected after endif. also PLEASE @anybody dont use the if(): endif; syntax :P