STRING

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 return a string from the given number of instances.


FORMAT: STRING (number) or STRING (instances, group_name)


DEFINITIONS:

  • Number: A numerical expression.
  • Instances: Instances that are to be searched for in given row.
  • group_name: Only labels with this group name will be searched.

EXAMPLE 1:

$play = instances where row = "Possession" limit -1,1
show string ($play,"Play")

Shows the first label with the group name "Play" in the last instance in row "Possession".

EXAMPLE 2:

show string (3+2) + "2"

Shows the number 52 (3+2 = 5 then add a 2 which gives 52).