I'm learning MySQL and I have a doubt which I would like you to clarify. Here's the code:

```sql
select case
            when a+b>c and a+c>b and b+c>a then
                case
                    when a=b or b=c or a=c then 'Isosceles'
                    when a=b and b=c then 'Equilateral'
                    else 'Scalene'
                end
            else 'Not A Triangle'  
         end
from triangles;

```

If I swap the 4th and 5th lines the output also changes. I want to know why this happens. Is it the same thing if I write the 4th line before or the 5th line? Shouldn't the output be same?