Difference between else if and elsif

1

I know that these two terms do not exist in the same language (correct me if I'm wrong), but in some languages (C #, in the example below), we have the following code:

if(condicao){

...

} else if (condicao) {

 ...

}

In others (Perl, in the example below, we have:

if (condicao) {
    ...
}
elsif (condicao) {
    ...
}

The two probably do the same thing, but is there any difference in their logic? Or in the way they are interpreted / compiled by the computer? Or is it just related to the syntax of the language itself?

    
asked by anonymous 24.03.2017 / 13:04

1 answer

6

else if , elseif , elsif , elif , and other forms are just different ways of writing the same thing, probably each conforms to the syntax philosophy. There is no difference in their execution, but nothing prevents some language from doing something different, it just does not make sense, it would only confuse.

    
26.03.2017 / 12:13