Elseif Statement Indentation Issue

Hello there,

So, ever since the new script editor update, I have been getting problems with script indentation for elseif statements. I expect to indent only once after an elseif, but as it turns out, it indents twice. It looks like it only occurs inside elseif statements. It started happening ever since the new script editor update. The steps to reproduce this are in the video below:


Sorry for the potato quality, but you can see that the elseif statement indents twice instead of once.

Edit: Forgot to tidy up the post lol

5 Likes

Hey, thanks for reporting issue with clear information! We are working on that and will fix it soon.

4 Likes

Hey GravityAccel, have you tried to type condition for “elseif”? ScriptEditor should indent when you give condition and press enter. For example: “elseif a then”

1 Like

Still getting the indent issue.
image

Sorry for the really late reply lol

1 Like

The extra tab appears on both elseif and else statements:

https://gyazo.com/2dc0dc523a7e2559b778d6ab6c998343

1 Like

Looks like it’s worse if you have both the elseif and else:
image

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.