web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

If statement on an enum in AL?

(0) ShareShare
ReportReport
Posted on by

I am trying to run an If statement in AL, and if I enter it:

IF "EFT Tender Type - CL-" = '' Then.... 
I get a message Operator '=' cannot be applied to operands of type 'Enum "EFT Tender Type -CL-"' and 'Text'. What is the best way to check if this field is blank or contains a certain value (Credit Card)?

Thanks,

Kevin

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    61,223 Super User 2026 Season 1 on at

    Did you try

    IF "EFT Tender Type - CL-" = "EFT Tender Type - CL-"::"" Then....

  • kjjson Profile Picture
    on at

    That worked great. Thank you so much.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,496 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 961 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 870 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans