skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Add numbers
 

Try Corticon Now

Add numbers

SYNTAX

<Number1> + <Number2>

DESCRIPTION

Adds <Number1> to <Number2>. The resulting data type is the more expansive of those of <Number1> and <Number2>. For example, if you are adding an Integer value and a Decimal value, the resulting value will be a Decimal. See Precedence of rule operators.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

This sample Rulesheet uses the add numbers operation to add the value of decimal2 to the value of integer1 and assign the result to decimal1

SAMPLE RULETEST

A sample Ruletest provides an integer1 value of 300 which is added to the value of decimal2 and assigned to the value of decimal1 for three instances of Entity1. Input and Output panels are shown below.