NUMBER

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 returns a num­ber from the giv­en string or instances.

FORMAT: NUMBER (string) or NUMBER (instances)


DEFINITIONS:

  • String: A string that can be con­vert­ed to a num­ber. An emp­ty string “” will con­vert to 0.
  • Instances: Instances that you intend to search for labels that con­tain­ num­bers.

EXAMPLE 1

show number ("-5") + 8

Shows 3.

EXAMPLE 2

show number ("")

Shows 0.

EXAMPLE 3

show number (instances)

Shows the first label number from the first instance in the timeline.

EXAMPLE 4

$var = instances where row = "Test Row 2"
show number ($var, 2)

Shows a valid label number from the second instance in the row "Test Row 2".