robot framework only change variable if code example
Example 1: robot framework set variable if else
${var} = Set Variable If
... "${var}"=="None" value
... "${var}"=="True" value
... "${var}"=="False" value
... Final else!
Example 2: robot framework set variable if condition
${var1} = Set Variable If
... "${var2}"=="None" value1
... "${var2}"=="True" value2
... "${var2}"=="False" value3
... Final else!