Nested if else problem

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By IvarO
:warning: Old Version Published before Godot 3 was released.
if(btn_l):
	set_linear_velocity(Vector2(-100,get_linear_velocity().y))
elif(btn_r):
	set_linear_velocity(Vector2(100,get_linear_velocity().y))
elif(btn_u):
	set_linear_velocity(Vector2(get_linear_velocity().x, 50)
else:
	set_linear_velocity(Vector2(0,get_linear_velocity().y))

Error parsing expression, misplaced “:”
(at else part)

if i remove second elif then it works fine. when i add second elif then it shows error. does godot support nested if else or not?

:bust_in_silhouette: Reply From: eons
elif(btn_u):
    set_linear_velocity(
                        Vector2(
                                get_linear_velocity().x, 50
                               )

You are missing a )