[ticket/11724] Handle ELSE IF separately

PHPBB3-11724