Types of Operators In Salesforce
Use operators when building formulas. All operators are available everywhere that you can include a formula such as formula fields, validation rules, approval processes, and workflow rules, unless otherwise specified.
Types of Operators In Salesforce
- Math Operators
- Logical Operators
- Text Operators
Math Operators
- + (Add)
Calculates the sum of two values. - - (Subtract)
Calculates the difference of two values. - * (Multiply)
Multiplies its values. - / (Divide)
Divides its values. - ^ (Exponentiation)
Raises a number to a power of a specified number. - () (Open Parenthesis and Close Parenthesis)
Specifies that the expressions within the open parenthesis and close parenthesis are evaluated first. All other expressions are evaluated using standard operator precedence.
Logical Operators
- = and == (Equal)
Evaluates if two values are equivalent. The = and == operators are interchangeable. - <> and != (Not Equal)
Evaluates if two values aren’t equivalent. - < (Less Than)
Evaluates if a value is less than the value that follows this symbol. - > (Greater Than)
Evaluates if a value is greater than the value that follows this symbol. - <= (Less Than or Equal)
Evaluates if a value is less than or equal to the value that follows this symbol. - >= (Greater Than or Equal)
Evaluates if a value is greater than or equal to the value that follows this symbol. - && (AND)
Evaluates if two values or expressions are both true. Use this operator as an alternative to the logical function AND. - || (OR)
Evaluates if at least one of multiple values or expressions is true. Use this operator as an alternative to the logical function OR.
Text Operators
- & and + (Concatenate)
Connects two or more strings.
Follow Us