v2.7 (latest)
Table Constant ​
A Table constant lets you create a table with rows and columns:
| Key | value |
|---|---|
| percentage_1 | 10 |
| percentage_2 | 15 |
| percentage_3 | 20 |
Below is a short introduction to Constant tables. In the next chapter, you will find a more elaborate explanation with more examples.
Procedure ​
- Create a ruleset named
ProductPrices.
Create manually ​
Create a constant named
PercentagesTableand set the Constant type toTable.
↳ Rulecube shows the Constant Table Designer section.Click Row twice to add extra rows to the table.
In the Constant Table Designer section, enter these keys and corresponding values:
Key value p1 10 p2 15 p3 20 Click Save.
Create by drag and drop ​
If you have a CSV file that contains your table data, you only need to create the constant and set its Type to Table. And then drop the CSV file onto the Value field.
Use ​
Refer to an element from a table constant by addressing the table and key whose value you want:
json
PrecentagesTable.p3