- Create your algorithm flow. Refer to Building Algorithm Flow in a Workbook Canvas.
Drag and drop RubiPython on your workbook canvas. If required, connect other nodes to the RubiPython node in your algorithm flow. Select RubiPython and in the Properties pane, click Configure. The configuration page is displayed.
- For example, if the variable name is var1, you can use it in RubiPython as : Var1Value = getVariable(@@var1@@).
- To set the variable value to use it further in the flow, use setVariable function as below:
- To assign or update the var1 variable value as that of the other variable value var2 where var2 is taken from the rubipython code flow, use below code using function of setVariable(@@var1@@, var2) as :
- After execution, the current value of var1 variable is set as 15.