robot set local variable with a keyword return code example
Example 1: type in robotframework
${type string}= Evaluate type($variable).__name__
Example 2: robot framework set variable if condition
${var1} = Set Variable If
... "${var2}"=="None" value1
... "${var2}"=="True" value2
... "${var2}"=="False" value3
... Final else!