Is there way to return Value based on condition
Obtain The Status Of CheckBox
[Arguments] ${item}
${Is_Checkbox_Selected}= Run Keyword And Return Status Checkbox Should Be Selected //*[@id="ctl00_PageBody_RolesList"]/tbody/tr/td/label[normalize-space(text())='${item}']/preceding-sibling::input
Run Keyword if '${Is_Checkbox_Selected}'== 'True' Return True #Todo: how to do more than one action here
... Else Return False
Not Sure if this can be achieved. If NOT what are the possible ways?
Also .. how to do below action..( i.e. Wanted to return and print some msg)
Run Keyword if '${Is_Checkbox_Selected}'== 'True' Return True Log somemsg
Run keyword and return statusreturns a real pythonTrue/False- a boolean datatype. So you don't have to compare their string representation, it's even better to do it as booleans:Run Keyword if ${Is_Checkbox_Selected}- Todor Minakov