Select to view content in your preferred language

Does Arcade have an OR operator?

1373
4
Jump to solution
02-11-2022 11:11 AM
Labels (1)
AmyRoust
Frequent Contributor

After looking through the list of Arcade operators, I don't see an alternative to OR. I need to make a statement along these lines, and it doesn't seem to work:

IIf(textField=='Yes' OR IsEmpty(dateField), 'TRUE', 'FALSE')


If I replace OR with &&, the expression works. Is there an alternative to OR in Arcade?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
TimNiblett1
New Contributor

I believe or is represented as || - two vertical bars, key used is usually above the enter key with the default character as \

I think you also need a logical operator after IsEmpty() since you are making a logic statement.

View solution in original post

0 Kudos
4 Replies
TimNiblett1
New Contributor

I believe or is represented as || - two vertical bars, key used is usually above the enter key with the default character as \

I think you also need a logical operator after IsEmpty() since you are making a logic statement.

0 Kudos
AmyRoust
Frequent Contributor

Thank you! That worked. 

0 Kudos
TimNiblett1
New Contributor

No problem! Glad it worked 😄

0 Kudos
KenBuja
MVP Esteemed Contributor

I submitted a comment to Esri about the missing Logical Or information on that page.