<b>Tip:</b> For yes/no or true/false binary parameters, it's often convenient to convert them directly into booleans.  It also makes the conditionals easier to write and read, e.g.:<pre><code>twice = "yes" == params.get("updatedevice_twice", "no")
...
if twice:
    do_something_again()
</code></pre>