Error in else if

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RpgGOD
:warning: Old Version Published before Godot 3 was released.

When I tried to write

if something:
    do something
else if another thing:
    do another thing

Why I am getting error in else if?

Never mind I was doing this c++ way :slight_smile:

RpgGOD | 2016-03-22 23:56

:bust_in_silhouette: Reply From: turgotZ

use elif rather than else if

if [expression]:
    statement(s)
elif [expression]:
     statement(s)
else:
    statement(s)

if/elif/else

I got it after posting the question. Almost forgot about elif.

RpgGOD | 2016-03-23 01:06