title: Syntax error working with robot framework conditional statement and keyword
body: <p>Here am trying to find a solution to a problem, i created a code that logs into a site and check the status of the site but collecting the status of element attribute and storing it into a variable called ${class}. Now here the problem the site can be in only four states denoted by color code green, yellow, red and gray. I tried 3 solutions</p>
  
  <p>1 To place each of the status into a scalar variable eg ${GREEN}=  status_indicator green and so forth then the code below follows but it didt work</p>
  
  <pre><code>Run Keyword If  ${GREEN} == ${class}  Keyword green
  ...  ELSE IF  ${YELLOW} == ${class}  Keyword yellow
  ...  ELSE IF  ${RED} == ${class}  Keyword red
  ...  ELSE  Keyword gray
  </code></pre>
  
  <p>2 i placed them into a list eg @{COLOR}=  status_indicator green and so forth
  then tried this </p>
  
  <pre><code>list should contain value  @{COLOR}  ${class}
  </code></pre>
  
  <p>In my opinion what will work best is a conditional statement since it words with the keywords i have created Please advice on what i should do thanks. </p>