<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CoDeSyS and Condition evaluation</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8b9e140a62/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8b9e140a62/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8b9e140a62/</id><updated>2020-02-27T21:40:10.787000Z</updated><subtitle>Recent posts to CoDeSyS and Condition evaluation</subtitle><entry><title>CoDeSyS and Condition evaluation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8b9e140a62/?limit=25#26ea" rel="alternate"/><published>2020-02-27T21:40:10.787000Z</published><updated>2020-02-27T21:40:10.787000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com473852cb8c813f7baaa144d4ec0a26f53cd2d3cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oh, now I understand. The question is since it was an AND condition and the first vlaue is false that means why even evaluate the second. Missed that one.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSyS and Condition evaluation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8b9e140a62/?limit=25#3e9a" rel="alternate"/><published>2020-02-27T21:40:09.312000Z</published><updated>2020-02-27T21:40:09.312000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com2d94dbfd8a509ef5439f1e9c93988af5fac86077</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the example is not correct but the question is.&lt;/p&gt;
&lt;p&gt;when it is an OR does it stop testing the rest?&lt;/p&gt;
&lt;p&gt;probably not.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSyS and Condition evaluation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8b9e140a62/?limit=25#ca06" rel="alternate"/><published>2020-02-27T21:40:07.835000Z</published><updated>2020-02-27T21:40:07.835000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comed0d56f78abee209c83ab0cd9fdea04bbbb57fc6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If (condition) then&lt;/p&gt;
&lt;p&gt;logic&lt;/p&gt;
&lt;p&gt;end_if&lt;/p&gt;
&lt;p&gt;Your condition is an AND statement which must take two operators A and B. B is never skipped.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSyS and Condition evaluation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8b9e140a62/?limit=25#0635" rel="alternate"/><published>2020-02-27T21:40:03.691000Z</published><updated>2020-02-27T21:40:03.691000Z</updated><author><name>yanapa</name><uri>https://forge.codesys.com/u/yanapa/</uri></author><id>https://forge.codesys.coma5746d2075ae08ddef4a136cd6601e9dbecfe8b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I'm asking something about condition evaluation. Check the following code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;var_a&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;var_b&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;var_a&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;var_b&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;span class="nv"&gt;begin&lt;/span&gt;
&lt;span class="c1"&gt;;//Some code&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;In this case, did the program will check the var_b or it will bypass directly after checking the var_a value ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>