Svenska Not logged in: Log in | Register

2015-03-27:

Note: Text covers an earlier version.

Data from Result Modules

Updated: 2015-03-27

If you use a Result Module to calculate results for the list, you activate out data from the module by checking Data from result module in a list entry. Not all types of list entries supports data from a result module; basically it calculates a time, a status, and a point, so only types related to these quantities and some deduced quantities, such as place and time after, supports data from a result module.

In addition there is another way to print out data from the result module in the list. In your code, you may assign values to the variables OutputTimes[] and OutputNumbers[], which you can pick up in the list through the types Result Module: Time and Result Module: Number, respectively.

Result Module: Time

This type formats the number in OutputTimes[index] (seconds), as a time. You specify which index to use in Index in OutputTimes[index].

Result Module: Number

This type formats the number in OutputNumbers[index] as a number. But you can also use the number to select any text string: In the field Custom text, type @ followed by a semicolon separated list of values. Then OutputNumbers[index] will be used as a (zero based) index to select one of the strings. If a string in the list contains the symbol X, it will be replaced by the number. If the last string in the list contains X, this string will be used also for any number not covered by the list. Thus you can use the string @;X to make 0 blank and print the number otherwise.

Example

Suppose that you, in the rule for time calculation, in your result module enter:

OutputNumbers[0] = Place-1;
return Time;

Then you select this result module in the list properties, create a list entry and select Result Module: Number, puts the index to 0 (default), and in the field Custom text type @Gold;Silver;Bronze.

The outcome is that the winners get the text Gold, those at a second place get Silver and those at a third place get Bronze. Other gets nothing.
To post a comment, you need to log in.