Please or Register to create posts and topics.

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

Page 1 of 2Next

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.

First guy tells the second guy, "My head hurts!" The second guy replied, "Stop thinking so much!" Then the first guy says, "I think that what caused my problem in the first place!" The second guy says, "Then stop banging you head against the wall!"

ImageImageVDC User Page

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?

It really depends entirely on the situation. I imagine a logic_branch or a logic_case could work.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

logic_case may also help you

I do my science from scratch.

Err yeah I meant logic_case, not logic_relay.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

DMuWDC_1UpQ

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

First guy tells the second guy, "My head hurts!" The second guy replied, "Stop thinking so much!" Then the first guy says, "I think that what caused my problem in the first place!" The second guy says, "Then stop banging you head against the wall!"

ImageImageVDC User Page

Ah, the old "multi stop elevator" exercise.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

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. :D

My Maps:
[spoiler][SP] Alternate[/spoiler]

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.

First guy tells the second guy, "My head hurts!" The second guy replied, "Stop thinking so much!" Then the first guy says, "I think that what caused my problem in the first place!" The second guy says, "Then stop banging you head against the wall!"

ImageImageVDC User Page

I didn't say tutorial, I said exercise. It's a great way to learn how to use complex I/O setups.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Page 1 of 2Next