1.类型定义
6种类型 | 含义 |
---|---|
start | 启动 |
end | 结束 |
operation | 程序 |
subroutine | 子程序 |
condition | 条件 |
inputoutput | 输出 |
2.流程图
- 流程图分为
变量定义
和流程连接
两部分
i.变量定义
- 格式:
tag=>type: content:>url
- 示例:
st=>start: 开始:> http://www.baidu.com
解释:
形参 实参 含义 tag st 自定义变量 ==> ==> 赋值 type start 定义的6种类型 content 开始 描述内容(自定义) :>url :> http://www.baidu.com
跳转链接(一般不需要使用)
ii.流程连接
- 格式:
tag1-> condition(flag,direction )->tag2
- 示例:
st->c1(yes,right)->e
解释:
形参 实参 含义 tag1 st 定义的变量 -> -> 连接 condition c1 定义的条件变量,type为condition (flag,direction) (yes,right) 4种方向:right,left,up,down
注:operation、subroutine和condition,都可以在括号里添加连接方向
3.代码1
- 示例:
```flow
st=>start: 开始:> http://www.baidu.com
e=>end: 结束
c1=>condition: 条件1:> http://www.baidu.com[_parent]
op=>operation: 程序
sub=>subroutine: 子程序
io=>inputoutput: 输出
st->c1(yes,right)->op(right)->sub(right)->io->e
c1(no)->e
```
- 演示效果: