$THIS_BUTTON

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

Use this script to return a button name.

FORMAT: $THIS_BUTTON


DEFINITIONS:

  • Button name: Text entered into the button name panel on the behavior tab of any button.

EXAMPLE 1:

show "my button name is " + $THIS_BUTTON

Returns the text "my button name is " with the button name of this button.

EXAMPLE 2:

$var = $THIS_BUTTON
show $var

Returns the text "HUDL" ("HUDL" being the name of this button).