How to: Calculate Arithmetic Mean
// Getting the value of the first tag
var tag1 = context.data['tag1_trig'].state.value;
// Getting the value of the second tag
var tag2 = context.data['tag2_trig'].state.value;
return (tag1 + tag2) / 2;

Last updated