You are currently viewing Conditional directives

Conditional directives

  • Post category:AL / Live Blog
  • Post comments:0 Comments
  • Reading time:2 mins read

One of the new features of the AL compiler that arrived with 2020 Wave 2 is Precompiler directives. This is nothing spectacular, programming languages had these kinds of things since the dawn of programming languages, and now we have them too.

The biggest thing, though, is that on their surface, just like so many other features (cough! interfaces, cough, cough, interfaces) you can’t really grasp their full power just by reading the documentation available.

The idea to present conditional directives on came to me while I was preparing for my Git branching models and strategies webinar. I didn’t cover this in detail during the webinar (it doesn’t have much to do with Git branching), and I will cover it in my new upcoming webinar that I will announce today, but I also want to touch this topic in a more public forum than a paid webinar. That’s why I’ll talk about this today.

If you want to follow the session live, and participate in the Q&A afterwards, here’s the link:

After the session is over, this will be the link to the recording, so if you can’t join live, you can always come and watch it later, sans Q&A.

Also, at some point in the next couple of days, I’ll update this post with more explanations, code examples, any relevant links, and such.

See you today at 2PM!


Vjeko has been writing code for living since 1995, and he has shared his knowledge and experience in presentations, articles, blogs, and elsewhere since 2002. Hopelessly curious, passionate about technology, avid language learner no matter human or computer.

Leave a Reply