Examples
Clock with flashing separator
The current clock is captured in the variable now
. Then we compare the datetime's Second property and see if it is even. Depending on the output of this comparison the clock is formatted with different formatters. Either way, the last line trim's the output and aligns it center.
Conditional formatting of diff time
The diff field from RR12 is captured in the variable diffString. Then it is checked if the string starts with a "-". If so, set the color variable to green, otherwise to red. After that the color is output together with the diff string and trimmed.
Show clock before start, runtime after start and gap time after winner finish
The following script allows to show the current clock before the start of the race, a runtime during the race and a gap time to winner as soon as the first athlete finishes.
This can be achieved by having the race start TOD and the winner TOD available in a RR12 list. The actual content of these values depend on your event file setup.
This list is then pulled via RRExchange globals feature periodically into the software.
The pulled global list entries are available as variables in each script then. They are identified by the name of the global. Also you can shortcut to the first row by using .First
., e.g. GlobalsName.First.Starttime
for a RR12 field named Starttime
in a globals list GlobalsName
.
Last updated