I get this error:Operator 'OR' cannot be applied to operands of type 'Text' and 'Text'
When I try to write this if statement in AL:if ActivityNo = 'DA' OR 'SA' then beginend;
Is there no way of using logical disjunction between text?
Good to know. Any way to use OR in a case statement? (just for future reference)
Try it as
if (ActivityNo = ‘DA’) or (ActivityNo = ‘SA’)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sumit Singh 2,707
Sohail Ahmed 2,675 Super User 2025 Season 2
YUN ZHU 2,228 Super User 2025 Season 2