[SOLVED] Does anyone know the equivalent of "if else"...

Avatar
kwp21 pitts
260 Posts
Posted Jun 13, 2011
I'm trying to come up with a way to organize the logic enities into an equivalent of an If else statement in hammer. If anyone has any pointers that could help, please post.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Pete
52 Posts
Posted Jun 13, 2011
Replied 35 minutes later
A logic_relay thats fired on whatever represents true, another thats fired on whatever represents false? Or maybe disable the first one on false, enable the second, disable second on true, enable the first, and try to trigger both in each case?
Avatar
msleeper
4,136 Posts
Admin
Posted Jun 13, 2011
Replied 1 hour later
It really depends entirely on the situation. I imagine a logic_branch or a logic_case could work.
Avatar
Mr. Happy
61 Posts
Posted Jun 13, 2011
Replied 2 hours later
logic_case may also help you
Avatar
msleeper
4,136 Posts
Admin
Posted Jun 13, 2011
Replied 8 minutes later
Err yeah I meant logic_case, not logic_relay.
Avatar
kwp21 pitts
260 Posts
Posted Jun 14, 2011
Replied 5 hours later
DMuWDC_1UpQ

I figured it out! Here is the result. It may not be portal at all, but it worked.

Avatar
msleeper
4,136 Posts
Admin
Posted Jun 14, 2011
Replied 3 hours later
Ah, the old "multi stop elevator" exercise.
Avatar
Vordwann
767 Posts
Posted Jun 14, 2011
Replied 3 hours later
It's a good multi stop elevator. I'll give it that. It changes light color depending on which floor you're on and looks really good. :biggrin:
Avatar
kwp21 pitts
260 Posts
Posted Jun 14, 2011
Replied 6 hours later

The thing is it wasn't built from any tutorial. Made from scratch.

http://i588.photobucket.com/albums/ss32 ... elevat.png

This uses an entirely different system than the tutorial on the vdc has.

Avatar
msleeper
4,136 Posts
Admin
Posted Jun 14, 2011
Replied 1 hour later
I didn't say tutorial, I said exercise. It's a great way to learn how to use complex I/O setups.
Avatar
kwp21 pitts
260 Posts
Posted Jun 14, 2011
Replied 41 minutes later
Sorry, misinterpreted on what you ment, and thank you guys on your comments.
Advertisement
Registered users don’t see ads! Register now!
Avatar
MasterLagger
1,695 Posts
Posted Jun 14, 2011
Replied 11 minutes later
A multi-stop elevator... ideas are forming in my head. kwp21 pitts, you deserve a thumbs up! :thumbup: