~~NOTOC~~ ====== Compare Two Numeric Values ====== Choose two number [[Field|fields]] or build two numeric [[Expression Builder|expressions]]. Then, select how you will compare them to each other. If the comparison is true, the evaluation will pass. If the comparison is false, the evaluation will fail. ===== Explanation ===== Evaluations have two [[Automation Trigger|automation triggers]] associated with them : Then and Else. Actions under the "Then" automation trigger execute when the evaluation passes, and actions under the "Else" automation execute when the evaluations fails. {{ ::action_evaluation_drop.png?direct |}} Numeric comparison evaluations are used to execute a set of actions if two numeric values compare successfully, and another set of actions if they do not. If a non-numeric value returns from an expression on either side the evaluation will fail. Example : Suppose an application contains a [[Table|table]] for Contacts with a [[Field Type - Currency|Annual Salary]] field and a [[Field Type - Selection|Tax Bracket]] field. When the value in the Annual Salary field changes, the Contacts' Tax Bracket field needs to be updated appropriately. A builder would create a series of numeric comparison actions under a [[Action Type - Field Change|field changed]] evaluation on the Annual Salary field and under the appropriate automation triggers add [[Action Type - Set Field Value|set field value]] actions to update the Tax Bracket field. ===== Settings ===== {{ ::action_fieldcomparison_numeric.png?direct |}} ==== Choose a field or build an expression ==== Choose a field or build an expression to be compared. ==== Choose how to compare them ==== Choose how these two expressions will be compared to one another. The available options are limited to those that should be used to compare numbers. ==== Choose a field or build an expression ==== Choose another field or build another expression to be compared. ==== Describe this action ==== Useful as a comment, this description will overwrite the automatically generated description in the [[Action Manager|Action Manager]]. ==== Queue this action and children ==== When an action is [[Action Queue|queued]], the subsequent actions continue to process without it. Meanwhile, the queued action and its children process separately. Queue actions that you don't want a user to wait for.