Administering : Managing business rules and expressions : Operators of expressions : Basic examples for float and integer attributes
  
Basic examples for float and integer attributes
The expressions below show basic examples of expressions for Float and Integer attributes:
pi (3.14...) and e (2.71...) can be used as constants in expressions.
The number format can have , (comma) or . (period or full stop) as a separator. Example: 1.5 or 1,5.
 
Operator
Description
Example
=1+1/2
Calculates the sum of 1 and 1/2
1,5
=(10<11)?1:2
Evaluates the expression (10<11), and if it is true (as it is in this case) result in 1, otherwise 2
1
='Cost'*'Time'
Evaluates an expression based on two attributes in the same element
2000
='Members!Developers!Cost'*'Time'
Evaluates an expression based on two attributes, one in the same element and one in another element in another module
2000
=(2*'Members!Joe User!Cost'/3 + 'Members!Diana Documenter!Cost'/3)*'Time'
Evaluates an expression with parentheses based on two attributes in other elements in other modules
1733,2
Go up to
Operators of expressions