Note: Text covers an earlier version. |
Data from Result Modules
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. If instead the last string starts with the @, that last string will be used as default for all values not specified in the list.Example
Suppose that you, in the rule for time calculation, in your result module enter:OutputNumbers[0] = Place - 1;
return Time;
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.
If you instead type @Gold;Silver;Bronze;X competitors with place N (outside the winner&[Unknown function 039;s]stand) get the number N-1 printed. (If you prefer the actual place you need to change the result module and replace Place-1 with Place and change the text to @;Gold;Silver;Bronze;X).
If instead you use the string @Winner;@@Looser, you would write Looser for everyone not winning and – as a side effect – excel in rudeness.
To post a comment, you need to log in.