Windchill Risk and Reliability Desktop Help > Overview > Functions > Calculating > Calculation File > Results Stored in Fields Attached to Lists
Results Stored in Fields Attached to Lists
When the result of a text calculation is stored in a field with a list attached, the resulting string is added to the list if it is not already present and then selected. When a new list item is added in this fashion, the resulting string is used for both the list item code and display text.
When the result of a numeric calculation is stored in a field with a list attached, the list item’s entry for Value in the List Library file is used to determine what list item to select. This field stores the value to use when a list item is used in a calculation. For more information, see List Library Files.
The following table provides an example for a list with three items.
List Item
Assigned Value
Conversion Logic
Low
10
X <= 10
Medium
50
10 < X <= 50
High
100
50X
Based on the conversion logic above, when calculation results are generated, list items are assigned as indicated in the following table:
Calculation
Result
Item Assignment
5 * 7 * 2
70
High
2 * 2 * 1
4
Low
5 * 5 * 2
50
Medium
4 * 4 * 3
48
Medium
8 * 9 * 11
792
High
If no values are assigned to list items, the numeric value calculated is stored in the field. If list items with duplicate values are present, the item with the description that comes first alphabetically is used. Any list items that have no values are ignored.