#If False excludes blocks entirely — no compile, no syntax check, perfect for broken drafts or large commented-out sections. #If True keeps code always active but gives you a single-line toggle for features. Combine with custom constants like kEnableLogging for centralized control. Works with the context-menu “Wrap In > #If / #EndIf”.
Source: blog.xojo.com/2026/04/03/con…#Xojo#CompilerDirectives#XojoAPI#CleanCode