ADD function adds a specified value to the score of a domain in a specified set.
ADD function changes the value of Score in the hidden results table.
For example, if a set variable
workingSet has these contents from the sample taxonomy in the introduction:
1.01 martial art 1.01.1 aikido 1.07 golf
and the hidden results table is the one in the introduction, then this statement:
ADD(workingSet, "1.07", 10);
will add ten points to the score of domain
1.07 (10) that will become 20.
Since the only domains with a score are those listed in the hidden results table, only domains with a matching entry in that table are affected.
The syntax is:
ADD(set, domain, number)
setis a set variable.
domainis the domain name or ID.
numberis the number to add. It can be an integer or a decimal value.