Flowchart else if

后端 未结 4 1354
我在风中等你
我在风中等你 2020-12-31 10:43

I\'m making a flowchart a for an algorithm, and came into some problem for an else if statement.

For an if-statement such as this one

if (something)          


        
4条回答
  •  佛祖请我去吃肉
    2020-12-31 11:31

    Here is the DRAKON version of this:

    if (case1) {outcome1}
    else if (case2) {outcome2}
    else {outcome3}
    

    if and else if in DRAKON

    Alternatively, it could look like this:

    switch construct in DRAKON

    See here: http://en.wikipedia.org/wiki/DRAKON

提交回复
热议问题