fixed elseif syntax