Below is my script :
increment
${delCount}= Set Variable 0
:FOR ${loopIndex} INRANGE 0 8
\ Log ${loopIndex}
\ ${delCount}= Run Keyword If '${loopIndex}'=='${3}' Run Keywords ${delCount+3}
\ ... ELSE IF '${loopIndex}'=='${6}' Run Keywords ${delCount+6}
\ ... ELSE Sleep 1s
Log ${delCount}
All I need to do is to increment the variable when the condition satisfies. How to go about this? I tried below :
Run Keywords Evaluate ${delCount}+${3}
Run Keywords ${delCount}= Set Variable ${delCount}+${3}
Run Keyword Evaluate ${delCount}