Formula "or" and "TRUE"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robertf
    Member
    • Apr 2017
    • 35

    Formula "or" and "TRUE"

    I know the formula language supports && in an ifthen statement.

    1. Does it support || for ORing conditions?
    2. Can TRUE or FALSE be returned from a conditional, for example, IFTHEN( varA = varB, TRUE, FALSE)?

    Here's what I'm trying to accomplish in a workflow formula.
    ifThen(entity\isAttributeChanged(billingContact) || entity\isAttributeChanged(billingEmail) || ifThenElse(entity\isAttributeChanged(billingAddres sStreet), array\includes(status, "Active"))

    I'm already using the "Any" condition to perform the workflow if the Account is one of several "Types", so I can't add this into that.

    Thanks
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    1. Yes.
    2. Yes.
    https://github.com/espocrm/documenta...a.md#operators.

    Argument ATTRIBUTE must be a string:

    entity\isAttributeChanged('billingContact')
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...