Library String
*** Variables ***
-&{Stream_dict} carbon=${6} nitrogen=${7} oxygen=${8} fluorine=${9} neon=${10} sodium=${11}
+&{Stream_dict} carbon=${6} nitrogen=${7} oxygen=${8} fluorine=${9} neon=${10} sodium=${11} magnesium=${12} aluminium=${13}
*** Keywords ***
Set_Variable_If_At_Least
... return ${value_if_false} otherwise.
BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least neon ${value_if_true} ${value_if_false}
+Set_Variable_If_At_Least_Sodium
+ [Arguments] ${value_if_true} ${value_if_false}
+ [Documentation] Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least sodium,
+ ... return ${value_if_false} otherwise.
+ BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least sodium ${value_if_true} ${value_if_false}
+
+Set_Variable_If_At_Least_Magnesium
+ [Arguments] ${value_if_true} ${value_if_false}
+ [Documentation] Compare magnesium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is atleast magnesium, return ${value_if_false} otherwise.
+ BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least magnesium ${value_if_true} ${value_if_false}
+
+Set_Variable_If_At_Least_Aluminium
+ [Arguments] ${value_if_true} ${value_if_false}
+ [Documentation] Compare aluminium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is atleast aluminium, return ${value_if_false} otherwise.
+ BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Least aluminium ${value_if_true} ${value_if_false}
+
Set_Variable_If_At_Most_Carbon
[Arguments] ${value_if_true} ${value_if_false}
[Documentation] Compare carbon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most carbon,
... return ${value_if_false} otherwise.
BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most neon ${value_if_true} ${value_if_false}
+Set_Variable_If_At_Most_Sodium
+ [Arguments] ${value_if_true} ${value_if_false}
+ [Documentation] Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most sodium,
+ ... return ${value_if_false} otherwise.
+ BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most sodium ${value_if_true} ${value_if_false}
+
+Set_Variable_If_At_Most_Magnesium
+ [Arguments] ${value_if_true} ${value_if_false}
+ [Documentation] Compare magnesium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most magnesium,
+ ... return ${value_if_false} otherwise.
+ BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most magnesium ${value_if_true} ${value_if_false}
+
+Set_Variable_If_At_Most_Aluminium
+ [Arguments] ${value_if_true} ${value_if_false}
+ [Documentation] Compare aluminium to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most aluminium,
+ ... return ${value_if_false} otherwise.
+ BuiltIn.Run_Keyword_And_Return Set_Variable_If_At_Most aluminium ${value_if_true} ${value_if_false}
+
CompareStream__Convert_Input
[Arguments] @{arguments}
[Documentation] Splits arguments into args and kwargs is used in Run_Keyword_If_At_Least_Else and Run_Keyword_If_At_Most_Else.
... are not supported.
${args} BuiltIn.Create_List
${kwargs} BuiltIn.Create_Dictionary
- : FOR ${arg} IN @{arguments}
- \ ${arg} BuiltIn.Convert_To_String ${arg}
- \ ${removed} String.Remove_String ${arg} \n ${Space} \t
- \ ... \r
- \ ${splitted} BuiltIn.Run_Keyword_If "${removed[0]}" == "<" BuiltIn.Create List ${arg}
- \ ... ELSE String.Split_String ${arg} separator== max_split=1
- \ ${len} BuiltIn.Get_Length ${splitted}
- \ Run Keyword If ${len}==1 Collections.Append_To_List ${args} @{splitted}[0]
- \ ... ELSE Collections.Set_To_Dictionary ${kwargs} @{splitted}
+ FOR ${arg} IN @{arguments}
+ ${arg} BuiltIn.Convert_To_String ${arg}
+ ${removed} String.Remove_String ${arg} \n ${Space} \t
+ ... \r
+ ${splitted} BuiltIn.Run_Keyword_If "${removed[0]}" == "<" BuiltIn.Create List ${arg}
+ ... ELSE String.Split_String ${arg} separator== max_split=1
+ ${len} BuiltIn.Get_Length ${splitted}
+ Run Keyword If ${len}==1 Collections.Append_To_List ${args} @{splitted}[0]
+ ... ELSE Collections.Set_To_Dictionary ${kwargs} @{splitted}
+ END
BuiltIn.Return_From_Keyword ${args} ${kwargs}
Run_Keyword_If_At_Least
... run ${kw_name} @{varargs} &{kwargs} and return its value.
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least neon ${kw_name} @{varargs} &{kwargs}
+Run_Keyword_If_At_Least_Sodium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is at least sodium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least sodium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_At_Least_Magnesium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare magnesium to ${ODL_STREAM} and in case ${ODL_STREAM} is at least magnesium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least magnesium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_At_Least_Aluminium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare aluminium to ${ODL_STREAM} and in case ${ODL_STREAM} is at least aluminium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Least aluminium ${kw_name} @{varargs} &{kwargs}
+
Run_Keyword_If_At_Most_Carbon
[Arguments] ${kw_name} @{varargs} &{kwargs}
[Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most carbon,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most neon ${kw_name} @{varargs} &{kwargs}
+Run_Keyword_If_At_Most_Sodium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is at most sodium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most sodium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_At_Most_Magnesium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare magnesium to ${ODL_STREAM} and in case ${ODL_STREAM} is at most magnesium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most magnesium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_At_Most_Aluminium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare aluminium to ${ODL_STREAM} and in case ${ODL_STREAM} is at most aluminium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_At_Most aluminium ${kw_name} @{varargs} &{kwargs}
+
Run_Keyword_If_More_Than_Carbon
[Arguments] ${kw_name} @{varargs} &{kwargs}
[Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than carbon,
Run_Keyword_If_More_Than_Neon
[Arguments] ${kw_name} @{varargs} &{kwargs}
- [Documentation] Compare fluorine to ${ODL_STREAM} and in case ${ODL_STREAM} is more than neon,
+ [Documentation] Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than neon,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than neon ${kw_name} @{varargs} &{kwargs}
+Run_Keyword_If_More_Than_Sodium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is more than sodium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than sodium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_More_Than_Magnesium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare magnesium to ${ODL_STREAM} and in case ${ODL_STREAM} is more than magnesium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than magnesium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_More_Than_Aluminium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare aluminium to ${ODL_STREAM} and in case ${ODL_STREAM} is more than aluminium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_More_Than aluminium ${kw_name} @{varargs} &{kwargs}
+
Run_Keyword_If_Less_Than_Carbon
[Arguments] ${kw_name} @{varargs} &{kwargs}
[Documentation] Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is less than carbon,
Run_Keyword_If_Less_Than_Neon
[Arguments] ${kw_name} @{varargs} &{kwargs}
- [Documentation] Compare fluorine to ${ODL_STREAM} and in case ${ODL_STREAM} is less than neon,
+ [Documentation] Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is less than neon,
... run ${kw_name} @{varargs} &{kwargs} and return its value.
BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than neon ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_Less_Than_Sodium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is less than sodium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than sodium ${kw_name} @{varargs} &{kwargs}
+
+Run_Keyword_If_Less_Than_Magnesium
+ [Arguments] ${kw_name} @{varargs} &{kwargs}
+ [Documentation] Compare magnesium to ${ODL_STREAM} and in case ${ODL_STREAM} is less than magnesium,
+ ... run ${kw_name} @{varargs} &{kwargs} and return its value.
+ BuiltIn.Run_Keyword_And_Return Run_Keyword_If_Less_Than magnesium ${kw_name} @{varargs} &{kwargs}