> No. This has been raised previously and there was a consensus that it > is often desirable for code in a COMMENT section to be evaluated on > export. Personally I often stuff code blocks into COMMENT sections > which I want run as part of my publishing process (e.g., to create > resources used in the exported document).
i won't go against consensus, but to me the expectation is that it acts just like commented lines. for your use case, could you use a section marked noexport or org-export-with-tasks? i would use the latter. if this has been raised before, please ignore.