List of tutorials
Moderator: EN - Forum Moderators
- Singapore123
- Posts: 2085
- Joined: Wed May 05, 2010 8:56 am
- Gender: Male
- Spoken languages: English, 1337, french, spanish,
Re: List of tutorials
Saw the tips and tricks, but still wanted to know: Is it possible to use variables to check if and ONLY if 1 input is on. 2 inputs is easy, make those (NOT,AND,OR) gates into a XOR gate, but I want it to be like 3-5 inputs. So if one and ONLY one input is on, the output is on. If no easy way, I will have to go back to minecraft and make some logic gates...
AAO Pokemon RP, my pokemon team.
https://docs.google.com/document/d/1Mgs ... sp=sharing
https://docs.google.com/document/d/1Mgs ... sp=sharing
- Bad Player
- Posts: 7228
- Joined: Wed May 20, 2009 10:53 pm
- Gender: Male
- Spoken languages: American
- Location: Under a bridge
Re: List of tutorials
You mean, you want it to check if one and only one variable is true? It's kinda long, but you could use
(var1 & !var2 & !var3 & !var4 & !var5) | (!var1 & var2 & !var3 & !var4 & !var5) | (!var1 & !var2 & var3 & !var4 & !var5) | (!var1 & !var2 & !var3 & var4 & !var5) | (!var1 & !var2 & !var3 & !var4 & var5)
(var1 & !var2 & !var3 & !var4 & !var5) | (!var1 & var2 & !var3 & !var4 & !var5) | (!var1 & !var2 & var3 & !var4 & !var5) | (!var1 & !var2 & !var3 & var4 & !var5) | (!var1 & !var2 & !var3 & !var4 & var5)
- Singapore123
- Posts: 2085
- Joined: Wed May 05, 2010 8:56 am
- Gender: Male
- Spoken languages: English, 1337, french, spanish,
Re: List of tutorials
That's the simplest one, but I can try to make it smaller, but thanks!
AAO Pokemon RP, my pokemon team.
https://docs.google.com/document/d/1Mgs ... sp=sharing
https://docs.google.com/document/d/1Mgs ... sp=sharing
- Meph
- Posts: 13439
- Joined: Mon Nov 10, 2008 10:07 pm
- Gender: Male
- Spoken languages: English
- Location: Probably Disneyland Paris... or the UK
Re: List of tutorials
Post questions in their own topic in future, please, Singapore.
Turnabout Carjack | Secrets of a Turnabout
Unas's Birthday Bash (19th - 20th - 21st) | Franziska vs. Oldbag | Turnabout With a Theme
TGS Special Courtroom Session (2005 - 2006) | Turnabout Chill | Turnabout of the Wild West
- henke37
- Security expert / tools programmer
- Posts: 3031
- Joined: Wed Mar 04, 2009 9:42 pm
- Gender: Male
- Spoken languages: Swedish,English
- Location: Sweden
- Contact:
Re: List of tutorials
Add them up and check if the result is exactly one.
Currently working on a redesign of Court-records.net.
- Bad Player
- Posts: 7228
- Joined: Wed May 20, 2009 10:53 pm
- Gender: Male
- Spoken languages: American
- Location: Under a bridge
Re: List of tutorials
I almost wrote "although henke might have a more elegant solution" at the end of my previous posthenke37 wrote:Add them up and check if the result is exactly one.
- Singapore123
- Posts: 2085
- Joined: Wed May 05, 2010 8:56 am
- Gender: Male
- Spoken languages: English, 1337, french, spanish,
Re: List of tutorials
Great Idea!
AAO Pokemon RP, my pokemon team.
https://docs.google.com/document/d/1Mgs ... sp=sharing
https://docs.google.com/document/d/1Mgs ... sp=sharing