New Functionality In Microsoft Dynamics 365 Business Central 2025 Wave 1: Use the New Continue Keyword for AL Loops

Microsoft Dynamics 365 Business CentralThis post is part of the New Functionality In Microsoft Dynamics 365 Business Central 2025 Wave 1 series in which I am taking a look at the new functionality introduced in Microsoft Dynamics 365 Business Central 2025 Wave 1.

The 8th of the new functionality in the Development section is use the new continue keyword for AL loops.

To make AL loops easier to write and read, you can now use the continue keyword in AL loops to continue to the next iteration, just like you are used to in other major programming languages.

Enabled for: Admins, makers, marketers, or analysts, automatically
Public Preview: Apr 2025
General Availability: Apr 2025

Feature Details

Like in many other programming languages, AL now supports using continue in loops to trigger the next loop iteration. Before, only the break keyword was supported, but that canceled the whole loop, whereas the continue keyword skips the current loop iteration and proceeds with the next.
To address that members, such as methods or fields in AL, might already be named continue, the continue keyword in loops will not be supported if the context has a member called continue. This is to avoid a breaking change. The compiler will warn about this, but still allow declaring object types with the name continue.

Click to show/hide the New Functionality In Microsoft Dynamics 365 Business Central 2025 Wave 1 Series Index

What should we write about next?

Leave a Reply

Your email address will not be published. Required fields are marked *