This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : avg_if(group,condition,value) | aTbRef Site Map |
avg_if(group,condition,value) |
Operator Type: | Boolean |
Operator Scope of Action: | Conditional Group |
This computes the arithmetic mean of a value in a group, as filtered by an expression. For example
avg_if(child(/Catalog),$Price!=0,$Price)
returns the average price of all the items in Catalog, ignoring any items that have a price of 0.
Up: Full Operator List | |
Previous: AttributeName(pattern) | Next: between(val,min,max) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]