Announcement

Collapse
No announcement yet.

Formula "or" and "TRUE"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Argument ATTRIBUTE must be a string:

    entity\isAttributeChanged('billingContact')

    Comment

    Working...
    X