Can I Use Multiple Conditions for "Run Keyword If" Keyword....?

8,958 views
Skip to first unread message

Ajit Jadhav

unread,
Dec 23, 2014, 12:04:56 AM12/23/14
to robotframe...@googlegroups.com
Hi All,

Can I Use Multiple Conditions for "Run Keyword If" Keyword ? 

Please Help.

Thanks,
Ajit.

Laurent Bristiel

unread,
Dec 23, 2014, 4:44:39 AM12/23/14
to robotframe...@googlegroups.com
yes, you can build complex conditions with "and" and "or" like:
Run Keyword If   (cond1 or cond2) and (value < max)    mykeyword_to_execute.

Laurent

komodospider

unread,
Jan 3, 2015, 9:01:31 AM1/3/15
to robotframe...@googlegroups.com
Hi Ajit, I found an example by Laurent on SO that makes his reply clearer. http://stackoverflow.com/questions/23863264/how-to-write-multiple-conditions-of-if-else-in-robot-framework


On Tuesday, December 23, 2014 6:04:56 AM UTC+1, Ajit Jadhav wrote:

Ajit Jadhav

unread,
Jan 6, 2015, 1:36:16 AM1/6/15
to robotframe...@googlegroups.com
Yeah,
This is working fine Now.

Thanks.
Reply all
Reply to author
Forward
0 new messages