本章主要介绍RF的循环,判断以及关键字Evaluate. 1. for循环 在RF中通过 :FOR 编写循环 :FOR ${i} in range 10 log ${i} @{list} create list a b c :FOR ${i} IN @{list} \ Exit For Loop If '${i}'=='b' log ${i} 2. if判断 通过"run keyword if" 关键字可以编写if分支语句,还有很多其他的if判断,如Return From Keywor…
本文是Linux Shell系列教程的第(九)篇,更多shell教程请看:Linux Shell系列教程 判断语句是每个语言都必不可少的关键语法,Shell命令当然也不例外.今天就给大家介绍下Shell判断语句 if else 用法. if 语句通过关系运算符判断表达式的真假来决定执行哪个分支. Shell 有三种 if else格式: if … fi 格式 if … else … fi 格式 if … elif … else … fi 格式 下面我就分别就这几种格式来为大家详细介绍下. 一.S…