Skip to main content
8-Gravel
September 13, 2018
Solved

Some questions to computed expressions

  • September 13, 2018
  • 1 reply
  • 1965 views

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) ?

This topic has been closed for replies.
Best answer by awalsh

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. 

 

1 reply

awalsh5-Regular MemberAnswer
5-Regular Member
September 14, 2018

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.