Example
if 100 yards away, run
else if 30 yards, jog
else walk
Thanks
Example
if 100 yards away, run
else if 30 yards, jog
else walk
Thanks
Well, there are extensions for that, but it's all Windows only...
There are other ways of doing it, like using groups, opposite events or if you get 2.5+ you can easily do it with child events.
The child events sounds interesting.
Can you put child events within child events?
BTW which extension does if else for windows?
Thanks
Yes, as long you don't add immediate conditions (those green/red conditions) in child events, cause those work as a trigger and run in a separated order, so Fusion won't allow you to do so.
IfElse Nest Object for example
I checked out the else if, but it does not seem to reduce any steps. At some point soon, I'll have to purchase the 2.5+.
The group event is looking the most promising at this point.
I'm thinking you can activate it, then close it when one of the ifs is true.
If I come up with a noteworthy-ish work around, I'll post it.
Thanks for your help![]()
Child events are *very* useful, but if you're doing an ELSE/IF type condition you can use a flag to do it:
edit: in hindsight this is probably more like 'select case'
In many cases, you can just do this using an always condition:
1. Always - walk
2. If =>30 yards - jog
3. If =>100 yards - run.
This effectively puts the "else" part at the beginning, instead of at the end. It will walk first, then immediately override that with jog or run, as needed. So if it's, say, 120 yards, the code will execute both walk and jog before finally overriding them with run. In many cases, this is fine. Obviously it depends on what the actions are. You obviously wouldn't want to do something like this:
1. always - Create Blue Sky object
2. If cold - Create Snow object
3. If very cold - Create Blizzard object
If it was very cold, then the above would obviously create two separate objects - a blue sky and a blizzard - which would be wrong. But in most other cases, the action in #2 or #3 will just safely override the earlier action(s) and no harm will be done.