<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.flowcode.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Bitwise_vs_Logical_operators</id>
	<title>Bitwise vs Logical operators - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.flowcode.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Bitwise_vs_Logical_operators"/>
	<link rel="alternate" type="text/html" href="https://www.flowcode.co.uk/wiki/index.php?title=Bitwise_vs_Logical_operators&amp;action=history"/>
	<updated>2026-04-17T20:44:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://www.flowcode.co.uk/wiki/index.php?title=Bitwise_vs_Logical_operators&amp;diff=40299&amp;oldid=prev</id>
		<title>MartinW: Created page with &quot;Logical operators compare two expressions and return 'true' or 'false' as a result. For example:   result = (x == 3) &amp;&amp; (y == 4)  //result will be true only if x equals 3 and...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.flowcode.co.uk/wiki/index.php?title=Bitwise_vs_Logical_operators&amp;diff=40299&amp;oldid=prev"/>
		<updated>2023-12-14T16:31:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Logical operators compare two expressions and return &amp;#039;true&amp;#039; or &amp;#039;false&amp;#039; as a result. For example:   result = (x == 3) &amp;amp;&amp;amp; (y == 4)  //result will be true only if x equals 3 and...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Logical operators compare two expressions and return 'true' or 'false' as a result. For example:&lt;br /&gt;
  result = (x == 3) &amp;amp;&amp;amp; (y == 4)  //result will be true only if x equals 3 and y equals 4&lt;br /&gt;
  my_value = !my_value           //toggle the BOOL var (e.g. if it is false, it becomes true)&lt;br /&gt;
&lt;br /&gt;
Bitwise operators take two numbers and then compare the bits of each number, resulting in a new number. They are often used to set or clear individual bits in a value or register, or to mask off some bits from a value. Some examples are:&lt;br /&gt;
  result = val &amp;amp; 0x0F     //mask off the lowest 4 bits (e.g. if val is 0x45, result will be 0x05)&lt;br /&gt;
  my_val = my_val | 0x01  //ensure the lowest bit of my_val is set to 1&lt;/div&gt;</summary>
		<author><name>MartinW</name></author>
		
	</entry>
</feed>