if/else and if/elseif

后端 未结 10 1865
傲寒
傲寒 2020-12-17 01:00

If I have a statement block like this:

if (/*condition here*/){ }
else{ }

or like this:

if (/*condition here*/)
else if (/         


        
10条回答
  •  Happy的楠姐
    2020-12-17 01:45

    if you want to check more condition we can use if..elseif. single condition then we can use if or if...else.

    Here I can't able to upload the full explanation with example so please go through the following links.

    if..else statement details
    http://allinworld99.blogspot.in/2016/02/ifelse-flow-chart-with-easy-example.html
    if...elseif details
    http://allinworld99.blogspot.in/2016/02/flow-chart-with-example-for-if-then.html

提交回复
热议问题