dimanche 9 septembre 2018

Is there a way to define a shortcut elif to replace else if?

Is there a way to use the shortcut elif for else if ?

I was thinking of a typedef or whatever you would call it; Something like

typedef else if elif

in order to write

if (some_condition)
     dothis();
elif (some_other_condition)
     dothat();

Aucun commentaire:

Enregistrer un commentaire