GROUP

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

This command will return all the instances that have labels with the particular group name.


FORMAT: instances where group = string or instances where group != string


DEFINITIONS:

  • instances: You will get all the instances that have any label with that group name. To search for certain labels instead of "instances" write the quoted name of the labels you want to search. (You can use AND, OR, NOT to apply conditions.)
  • string: The name of the group.

EXAMPLE 1:

show count instances where group = "team1"

Will show a count of all instances that have a label with the group "team1".

EXAMPLE 2:

show count instances where group != "team1"

Will show a count of all instances that have a label without the group "team1".

EXAMPLE 3:

show count "goal" where group = "team1"

Will show a count of all instances that have a label "goal" and the group "team1" is also present in the instances. (Goal doesn't have to belong to the same group.)

EXAMPLE 4:

show count "goal" where group != "team1"

Will show a count of all instances that have a label "goal" and the group "team1" is NOT present in the instances. (Goal doesn't have to belong to the same group.)

EXAMPLE 5:

show count instances where group = "team1" and row = "Attack"

Will show a count of all instances that have a label with the group "team1" in the row "Attack". The same structure applies to the other cases presented above.