getcv(expression, condition)


Description

Returns the child item value in the expression if the condition is satisfied.
This function is used to find the appropriate child item and return the expression, you should specify the second arg as condition, the first arg is expression, eccoext will enumerate for all child items, and if the condition is meet eccoext will evaluate the expression (first arg), and return the result.

Example

getcv(fv("count") * fv("price"), fv("price") > 100)

Related Rules