title: How to pass a boolean variable to a python function from robot framework
body: <p>I am new to robot framework, and inherited some .robot files which call some python functions.</p>
  <p>Within the .robot file we have some variables defined as:</p>
  <pre><code>| *** Variables ***  |
  | ${file}            | 2021
  | ${useV2}           | False
  </code></pre>
  <p>However when the python function is called and this code runs:</p>
  <p>log.info(f&quot;{useV2} , type: {type(useV2)}&quot;)</p>
  <p>the output is</p>
  <blockquote>
  <blockquote>
  <p>False , type: &lt;class 'str'&gt;</p>
  </blockquote>
  </blockquote>
  <p>So short of checking for &quot;False&quot; and &quot;True&quot; in this function, and subsequent functions where needed, how do I setup a robot framework variable as a boolean and have python derive true/false accurately?</p>