View Single Post
  #4   Spotlight this post!  
Unread 02-04-2015, 07:15 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,998
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Limit Swtich Help

Quote:
Originally Posted by mmaunu View Post
If you are assigning to a boolean value, then you will get the newly assigned value (which would actually be a boolean of course)
That was the context for the discussion.

if (limitPressed = true)

will return a boolean: it will always return "true" regardless of the value of limitPressed prior to the test.



Last edited by Ether : 02-04-2015 at 07:41 PM. Reason: clarity
Reply With Quote