- ${cmd} = BuiltIn.Run Keyword If '${description}'!='None' BuiltIn.Catenate ${cmd} --description ${description}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${direction}'!='None' BuiltIn.Catenate ${cmd} --${direction}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${ethertype}'!='None' BuiltIn.Catenate ${cmd} --ethertype ${ethertype}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${port_range_min}'!='None' and '${port_range_max}'!='None' BuiltIn.Catenate ${cmd} --dst-port ${port_range_min}:${port_range_max}
- ... ELSE IF '${port_range_max}'!='None' BuiltIn.Catenate ${cmd} --dst-port ${port_range_max}
- ... ELSE IF '${port_range_min}'!='None' BuiltIn.Catenate ${cmd} --dst-port ${port_range_min}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${protocol}'!='None' BuiltIn.Catenate ${cmd} --protocol ${protocol}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${remote_group_id}'!='None' BuiltIn.Catenate ${cmd} --remote-group ${remote_group_id}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${remote_ip_prefix}'!='None' BuiltIn.Catenate ${cmd} --src-ip ${remote_ip_prefix}
- ... ELSE BuiltIn.Catenate ${cmd}
- ${cmd} = BuiltIn.Run Keyword If '${remote_ip}'!='None' BuiltIn.Catenate ${cmd} --remote-ip ${remote_ip}
- ... ELSE BuiltIn.Catenate ${cmd}
+ IF '${description}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --description ${description}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${direction}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --${direction}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${ethertype}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --ethertype ${ethertype}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${port_range_min}'!='None' and '${port_range_max}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --dst-port ${port_range_min}:${port_range_max}
+ ELSE IF '${port_range_max}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --dst-port ${port_range_max}
+ ELSE IF '${port_range_min}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --dst-port ${port_range_min}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${protocol}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --protocol ${protocol}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${remote_group_id}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --remote-group ${remote_group_id}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${remote_ip_prefix}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --src-ip ${remote_ip_prefix}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END
+ IF '${remote_ip}'!='None'
+ ${cmd} = BuiltIn.Catenate ${cmd} --remote-ip ${remote_ip}
+ ELSE
+ ${cmd} = BuiltIn.Catenate ${cmd}
+ END