"Run Keyword If" and setting a variable
<p>The following code doesn't work.
I want to set a variable if a condition is true.</p>

<pre><code>    Run Keyword If    ${MAC} == 110299160221421    ${device_serial}=    set variable    ${device_serial_1}
</code></pre>

<p>I get the error:</p>

<pre><code>No keyword with name '=' found
</code></pre>

<p>This is working but doesn't change a variable.</p>

<pre><code>    Run Keyword If    ${MAC} == 110299160221421    Log to console    111
</code></pre>