I would like to know how to use Run Variable IF

${month} Set Variable If ‘${month}’==‘01’ ‘1’
${month} Set Variable If ‘${month}’==‘02’ ‘2’

If 01, convert to 1,
If it is 02, I want to convert it to 2.

Since it is 01, conversion to 1 works fine.
Why is 02 running and giving an error?

FAIL: No keyword with name ‘’${month}‘==‘02’’ found.

This is a typical case of missing spaces between keyword and arguments. Just add one more space, like you have in the working step.

1 Like