This function is used to test if a specified credit is known by the Combined Credits Editor's credit database. It can also be used to add or remove user defined credits.
All text fields may contain any of the escape sequences described in Escape Sequences.
The function is only executed once per set of files while executing stepwise.
The following functions are supported: Lookup Credit, Add Credits, Remove Credits, Set Alias. If you want to get a full or partial list of credits in the database, you can use a Get Info statement's Filtered List of Credit Roles function.
The action test state is set to true if the specified credit is known, otherwise it is set to false. See the ~ code below for a possible partial match. Three special named variables are also set:
One or more user defined credits may be added. The Credits field (after unescaping) is considered a list of items delimited by the default list delimiter (\~).
The added credits may be mapped to Musician Credits or Involved People. The Mapping field is designed such that the field association can be specified when the statement is created or at runtime via an escape sequence. The field is interpreted by looking for M and I characters (case insensitive) after unescaping.
You can optionally specify the credits being added are an alias to a different credit. If an alias is specified, it must exist or the new credits will not be created. The alias's alphabetic case as in the database is always used. The alias's mapping overrides the specified mapping.
Remember that the mapping and optional alias are applied to all created credits.
The action test state is set to true if any credits were created.
One or more user defined credits may be removed. The Credits field (after unescaping) is considered a list of items delimited by the default list delimiter (\~). Credits other than user defined credits are not deleted.
The action test state is set to true if any credits were deleted.
One or more credits can have their alias set or modified. The Credits field (after unescaping) is considered a list of items delimited by the default list delimiter (\~). There is no requirement that the specified credits are user defined credits.
The specified alias must exist or no changes will occur. The alias's alphabetic case as in the database is always used.
Every existing credit will have its alias set. If a credit does not exist, it will be created as an alias.
The action test state is set to true if any aliases were modified.