Hello,
What is correct way to add if else statement.
TYPE 1 : If else sequence separately :
TYPE 2 : Else if statement sequence :
TYPE 3 : Else if statement with no space sequence :
What is correct way to add if else statement.
TYPE 1 : If else sequence separately :
MQL4:
if (condition1) { //Condition 1 task } else { if (condition2) { //condition2 task } else { if(condition3) { //condition3 task } else { //condition else task }
TYPE 2 : Else if statement sequence :
MQL4:
if (condition1) { //Condition 1 task } else if (condition2) { //condition2 task } else if(condition3) { //condition3 task } else { //condition else task }
TYPE 3 : Else if statement with no space sequence :
MQL4:
if (condition1) { //Condition 1 task } elseif (condition2) { //condition2 task } elseif(condition3) { //condition3 task } else { //condition else task }