minity icon indicating copy to clipboard operation
minity copied to clipboard

Feature request: Allow `else` statement be in next line

Open AgainPsychoX opened this issue 3 years ago • 0 comments

Motivation example

This does not work:

		if @s[y_rotation=0] {
			say y_rotation=0
		}
		else if @s[y_rotation=90] {  // Error  :C
			say y_rotation=90
		}
		else if @s[y_rotation=180] {
			say y_rotation=180
		}
		else if @s[y_rotation=270] {
			say y_rotation=270
		}

This does:

		if @s[y_rotation=0] {
			say y_rotation=0
		} else if @s[y_rotation=90] {
			say y_rotation=90
		} else if @s[y_rotation=180] {
			say y_rotation=180
		} else if @s[y_rotation=270] {
			say y_rotation=270
		}

Another sugar syntax thing, but really my eyes would be happy for it.

AgainPsychoX avatar Dec 09 '21 22:12 AgainPsychoX