View Single Post
  #13   Spotlight this post!  
Unread 06-02-2011, 07:32
Acarid Acarid is offline
<3 Nested Clusters
FRC #2521
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Eugene, Oregon
Posts: 10
Acarid is an unknown quantity at this point
Re: turning a push button into a switch

Quote:
Originally Posted by Greg McKaskle View Post
The attached code does work, but may I suggest replacing the negate and AND with a notEqual node? In Boolean algebra, they are equivalent, but if this were a number or string, Boolean doesn't work any longer. I also think the verbal description is probably more understandable to others.

Greg McKaskle
A not-equal wouldn't be quite the same, since it'd also activate when the button is released. A greater-than might work though... I'm not entirely sure if it'd work with booleans... hmm.
Reply With Quote