Why can't I use "else if"?

Why can’t I use “else if”?

1 Like

Check my comment in your other post

I created a test project with only a button and a label and this is the code

When I click the button I get this

Works fine and as expected and has no bug or error.

1 Like


1 Like

It seems that there can only be 1 else if

See this

It still works

1 Like

it works…

1 Like

You should not have two else if conditions that are the same. You are checking to see if a property is > 50 twice. You need to fix that.