cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Some questions to computed expressions

elmar_pfeffer
6-Contributor

Some questions to computed expressions

I certainly found the section "computed expression Function Classes" chapter on the help pages, but I could not find a decent descripton for some of the functions I regularily encounter.

 

Questions: 

-> What is the syntax of an "if" (...? 1:0...)

-> how is "aggregatebyTree" different from "aggregate"

-> is there some kind of loop function available (e.g.: for-loop) ?

1 ACCEPTED SOLUTION

Accepted Solutions

the syntax for "if" is:

Boolean-exp?true_exp:false_exp

 

The Aggregate function will follow the relationship field specified one level.

AggregatebyTree will follow the relationship field down the tree - so if there are items several levels deep, they will be included. 

 

 

 

I don't  believe there is a for loop in the computations. For that complexity of computation, I'd suggest a trigger script. 

 

View solution in original post

1 REPLY 1

the syntax for "if" is:

Boolean-exp?true_exp:false_exp

 

The Aggregate function will follow the relationship field specified one level.

AggregatebyTree will follow the relationship field down the tree - so if there are items several levels deep, they will be included. 

 

 

 

I don't  believe there is a for loop in the computations. For that complexity of computation, I'd suggest a trigger script. 

 

Top Tags