Does Arcade have an OR operator?

835
4
Jump to solution
02-11-2022 11:11 AM
Labels (1)
AmyRoust
Occasional Contributor III

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
Occasional Contributor III

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.