<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=15069&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-04-09T20:27:35+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15069&amp;mode</id>
<entry>
<author><name><![CDATA[APAP75]]></name></author>
<updated>2016-04-09T20:27:35+01:00</updated>
<published>2016-04-09T20:27:35+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158170#p158170</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158170#p158170"/>
<title type="html"><![CDATA[Re: Pytanie o warunek if]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158170#p158170"><![CDATA[
To kiknij żesz mu &quot;pomógł&quot; w prawym dolnym rogu  <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=6195">APAP75</a> — 9 kwi 2016, o 20:27</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[drewpol]]></name></author>
<updated>2016-04-08T13:12:04+01:00</updated>
<published>2016-04-08T13:12:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158096#p158096</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158096#p158096"/>
<title type="html"><![CDATA[Re: Pytanie o warunek if]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158096#p158096"><![CDATA[
Dzięki za pomoc ! <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8379">drewpol</a> — 8 kwi 2016, o 13:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Sparrow-hawk]]></name></author>
<updated>2016-04-08T13:04:41+01:00</updated>
<published>2016-04-08T13:04:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158094#p158094</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158094#p158094"/>
<title type="html"><![CDATA[Re: Pytanie o warunek if]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158094#p158094"><![CDATA[
Będzie zawsze spełniony, bo powinno być:[syntax=c]if((bajt &amp; 0x0f) == 1 || (bajt &amp; 0x0f) == 7 || (bajt &amp; 0x0f) == 14 || (bajt &amp; 0x0f) == 8)<br />  ++licznik;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10614">Sparrow-hawk</a> — 8 kwi 2016, o 13:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Marhef]]></name></author>
<updated>2016-04-08T11:37:00+01:00</updated>
<published>2016-04-08T11:37:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158087#p158087</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158087#p158087"/>
<title type="html"><![CDATA[Re: Pytanie o warunek if]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158087#p158087"><![CDATA[
A czy przypadkiem nie jest tak, że ten warunek[syntax=c](1 || 7 || 14 || 8)[/syntax]będzie zawsze spełniony?<br />1 lub 7 lub 14 lub 8 logicznie zawsze da wartość 1.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12752">Marhef</a> — 8 kwi 2016, o 11:37</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[drewpol]]></name></author>
<updated>2016-04-08T10:54:02+01:00</updated>
<published>2016-04-08T10:54:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158082#p158082</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158082#p158082"/>
<title type="html"><![CDATA[Pytanie o warunek if]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15069&amp;p=158082#p158082"><![CDATA[
Witam. Mam pewien problem z warunkiem if. Otóż sprawdzam sobie stan pewnego bajtu i gdy robie to w ten sposób nie ma problemu:<br />[syntax=c]if((bajt &amp; 0x0f) == 1)licznik++;[/syntax]<br />0x0f jest po to, aby maskować tylko najmłodszą część, gdyż w niej mam zawarte pewne informacje.<br />Problem pojawia się gdy chce sprawdzić kilka warunków:<br />[syntax=c]if((bajt &amp; 0x0f) == (1 || 7 || 14 || 8))licznik++;[/syntax]<br />W tym przypadku działa tylko pierwszy, a na resztę program nie reaguje. Proszę o pomoc co robię źle w tym wypadku ?<br /><br />Pozdrawiam<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8379">drewpol</a> — 8 kwi 2016, o 10:54</p><hr />
]]></content>
</entry>
</feed>