Quote:
Originally Posted by mmaunu
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.