Code question: if elif

Someone know if Can I have a if elif inside of an if elif?
for example

if (DESTINATION is “Go to the date”){
Sandy
So how it went?
if (DESTINATION2 is “Mmm nope”){
Ana
The moment I saw him I ran away.

} elif (DESTINATION2 is “What could go wrong?”){
Ana
It was a disaster.
}

} elif (DESTINATION is “Dump him”){
Sandy
So how it well?

Diana
I didn’t go to the date.
}

(it is good or i have mistakes in the coding?) i’m not a english speaker :pleading_face: i hope you understood me :frowning:

Yes, but all starting brackets must have a matching end bracket. So you need one more end bracket at the very end.

1 Like

omggg thank you so much! do you know how can i do it? or an example I can base with :pleading_face:?

Just add another bracket at the end of your code above.

omg thank you!! :heart:

1 Like

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