 |
Only available in GreenPepper 1.3.1 and higher |
Why ?
Variables sharing could be useful when you want to save datas from a Rule For table to use them in another Rule For table.
How ?
To save data
- Add the symbol "=" at the end of the column you want to save data from.
- Put a variable name on each cell corresponding of the column to save.
| Rule For |
Calculator |
| x |
y |
sum?= |
| 5 |
6 |
myVariable |
(equivalent of myVariable = 5 + 6) |
| 1 |
2 |
myOtherVariable |
(equivalent of myOtherVariable = 1 + 2) |
| 4 |
6 |
|
(equivalent of 4 + 6) |
To call saved data
- Add the symbol "=" at the begining of the column you want to call data in.
- Put the variable name you want to call back on each cell of the corresponding column.
| Rule For |
Calculator |
| =x |
y |
sum?= |
| myVariable |
3 |
otherVar |
(equivalent of otherVar = 11 + 3) |
| myOtherVariable |
1 |
|
(equivalent of 3 + 1) |
| otherVar |
4 |
|
(equivalent of 14 + 4) |