<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to compiling code under condition</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/16a78094ad/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/16a78094ad/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/16a78094ad/</id><updated>2020-02-27T22:43:23.925000Z</updated><subtitle>Recent posts to compiling code under condition</subtitle><entry><title>compiling code under condition</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/16a78094ad/?limit=25#7b7a" rel="alternate"/><published>2020-02-27T22:43:23.925000Z</published><updated>2020-02-27T22:43:23.925000Z</updated><author><name>Maurizio</name><uri>https://forge.codesys.com/u/maurizio/</uri></author><id>https://forge.codesys.com2b259dd04ac449567da3df70280faaba21b3d1de</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If I use bits with if istruction I must manually exclude code from compilation.&lt;/p&gt;
&lt;p&gt;I think the solution could be istruction &lt;span style="color: underline;"&gt;pragma&lt;/span&gt; but I haven't undestood haw use it.&lt;/p&gt;
&lt;p&gt;Someone have experiences about?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>compiling code under condition</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/16a78094ad/?limit=25#f32f" rel="alternate"/><published>2020-02-27T22:43:22.321000Z</published><updated>2020-02-27T22:43:22.321000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com82a04d9515f710056f3c36c0bdb16d896839e6cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think you are wondering if there is something like pre-processor calls like #ifdef? No there is nothing that I am aware of. Your best bet is to set a bit and either execute the code or not.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>compiling code under condition</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/16a78094ad/?limit=25#a24b" rel="alternate"/><published>2020-02-27T22:43:17.889000Z</published><updated>2020-02-27T22:43:17.889000Z</updated><author><name>Maurizio</name><uri>https://forge.codesys.com/u/maurizio/</uri></author><id>https://forge.codesys.comdbfd315030f1f27248fca5e66c23e72484c9dbc7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Someone can help me abaut undestand if it is possible to write code in codesys 3 that can be compiled under condition?&lt;/p&gt;
&lt;p&gt;Be care not the property exclude by compilation of an object but lyke in c with the opertor define and so on. The idea is generate differents compilation codes from one project when should be possible to have or not some codes.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>