determining if the RF

Keywords run keyword if

Format is as follows:

Run Keyword If   the judgment condition other keywords     

... ELSE IF    determine conditions other keywords      

... ELSE   determine conditions other keywords   

The following example:

Run Keyword if  1==2 log 相等

... ELSE log range

 

Use  run keyword if keyword Precautions:

1, ELSE IF must be uppercase

2, ELSE IF front need to add "..." indicates the indent

 

Examples of Use

1, determination condition - Digital Comparative

 

2, the determination condition - Comparative character

 

note:

( 1) the variable value is $ {var} character, which requires the determination condition and single or double quotation marks (as shown above the red box), is '$ {var}' or "$ {var}".

( 2) in the determination condition, the variable $ {var} comparison character constant need to add single or double quotation marks, as 'tttt' or "tttt".

 

3, determination condition - Compare Boolean

 

note:

( 1) When the variable $ {var} is true or false, it is determined that conditions need to add single or double quotation marks, as '$ {var}' or "$ {var}".

( 2) in the determination condition, the variable $ {var} Boolean comparison also need to add single or double quotation marks, as '$ {true}' or "$ {true}".

 

4, determination condition - if the list contains elements

 

note:

( 1) the variable value is $ {string} character, which requires the determination condition and single or double quotation marks, as '$ {string}' or "$ {string}".

( 2) variable contains the variable "$ {var1}" in " $ {var2}" Note: the variables are required to add single or double quotes

( 3) contains a list of variable "$ {var1}" in @ {list} Note: Variables to be coupled with single or double quotation marks, the list is not to be quoted

( 4) can not list contains a list of

 

5, determination conditions - equality comparison list listing

 

6, the determination condition - Compare the list element

 

note:

( 1) a list of element values (the above figure $ {list1 [0]} and $ {list [1]}) for the character, which requires the determination condition and single or double quotation marks, becomes "$ {list1 [ 0]} "and" $ {list [1]} ", as a number, you do not need quotes

 

7, a plurality of execution judgment condition

 

Guess you like

Origin www.cnblogs.com/Mr-ZY/p/11697100.html