You are here

getGroup

getGroup(shortName) gets a group given its short name.

Parameters

shortName
A string representing the short name of the group to return.

Returns

Returns a ScriptGroup object, or null if the group cannot be found.

Example

var shortName = "MY_GROUP";

model.scriptGroup = groups.getGroup(shortName);