Announcements
No record found.
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?
Try it as
if (ActivityNo = ‘DA’) or (ActivityNo = ‘SA’)
Good to know. Any way to use OR in a case statement? (just for future reference)
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,005 Super User 2026 Season 1
YUN ZHU 1,148 Super User 2026 Season 1
Khushbu Rajvi. 557 Super User 2026 Season 1