CODE

This tutorial is specific to our newest product, Hudl Sportscode. If you’re on Sportscode v11, use these resources instead or upgrade today.

This script will obtain the output from another button using a name.


FORMAT: CODE "button_name"


DEFINITIONS:

  • button_name: A string with the name of a button in the code input window.

EXAMPLE 1:

$stat = code "TOTAL"
show $stat

Obtain the output of the button with the name "TOTAL" and use it in the variable $stat. Display it with the SHOW command.

EXAMPLE 2:

$stat = code "TOTAL" IN WINDOW "CW2"
show $stat

Obtain the output of the button with the name "TOTAL" from the window called "CW2" and use it in the variable $stat. Display it with the SHOW command. The codification window where the referenced button is must be open when the report is run.