Else-if ladder बहु-मार्ग निर्णय लिखने का सबसे सामान्य तरीका है।
else-if ladder के लिए सिंटैक्स निम्नानुसार है:
if (condition1)
stmt1;
else if (condition2)
stmt2;
- - - - -
- - - - -
else if (condition n)
stmtn;
else
stmt x;
फ्लोचार्ट
नीचे दिया गया फ्लोचार्ट देखें:

उदाहरण
निम्नलिखित C प्रोग्राम Else If Ladder सशर्त स्टेटमेंट को निष्पादित करता है:
#include<stdio.h>
void main (){
int a,b,c,d;
printf("Enter the values of a,b,c,d: ");
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>b){
printf("%d is the largest",a);
}
else if(b>c){
printf("%d is the largest",b);
}
else if(c>d){
printf("%d is the largest",c);
}
else{
printf("%d is the largest",d);
}
}
आउटपुट
जब उपरोक्त प्रोग्राम निष्पादित होता है, तो यह निम्नलिखित परिणाम उत्पन्न करता है:
Enter the values of a,b,c,d: 2 3 4 5 5 is the largest