<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Initializing variables using expressions</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e86cc75112/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e86cc75112/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e86cc75112/</id><updated>2020-02-27T19:50:26.005000Z</updated><subtitle>Recent posts to Initializing variables using expressions</subtitle><entry><title>Initializing variables using expressions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/e86cc75112/?limit=25#d08b" rel="alternate"/><published>2020-02-27T19:50:26.005000Z</published><updated>2020-02-27T19:50:26.005000Z</updated><author><name>CoderDude</name><uri>https://forge.codesys.com/u/coderdude/</uri></author><id>https://forge.codesys.com23b3eb1c2f5dcf0504feae990d48c31f83eb4bb9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I want to initialize a variable using expressions, for instance&lt;/p&gt;
&lt;p&gt;myVar : INT := 3 + x + 2*y; &lt;/p&gt;
&lt;p&gt;It seems this can be done in CoDeSys 3.5: &lt;br/&gt;
&lt;a class="" href="https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_f_declaring_variables/" rel="nofollow"&gt;https://help.codesys.com/api-content/2/ ... variables/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However this gives me compiler errors in CoDeSys 2.3. Is there some compiler option or so I could use to enable this? Or some neat workaround?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>