You are viewing the documentation for Blueriq 14. Documentation for other versions is available in our documentation directory.

ADD (+)


Use the '+' (plus) sign to add values of some type of number.


Syntax

number1 + number2 + ...


Inputs

  • number1 - First number or attribute of some type of number to add.

  • number2 - Second number or attribute of some type of number to add.


Return types

  • number + number = number

  • integer + integer = integer

  • currency + currency = currency

  • percentage + percentage = percentage

  • number + integer = number

  • number + currency = currency

  • number + percentage = percentage

  • integer + currency = currency

  • integer + percentage = percentage

  • currency + percentage = error


Examples

Suppose the following data model:

Entity.attributeValueType
Child.pocketMoney2.50Currency
Bonus.standard5.00Percentage
ExpressionResultType
Child.pocketMoney + 3.005.50Currency
Child.pocketMoney + 35.50Currency
2.50 + 35.5000Number
100 + Bonus.standard105.00Percentage
Child.pocketMoney + Bonus.standardError