Current SPAD.neXt Release: 0.9.12.123

This forum has closed. Please join our Discord Community.

SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5

If Else Condtions

General Discussions
Locked
wulybugger
Passenger
Posts: 1
Joined: 22 May 2020, 00:31
Status: Offline

If Else Condtions

Post by wulybugger » 22 May 2020, 00:34

Is it possible to setup If/Else conditions? It seems when assigning conditions to actions, it is only an 'If' condition. That is, if the condition is true then execute the action, otherwise do nothing. I would like to setup and If condition the flip-flop com, else flip-flop nav. Is this possible?

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: If Else Condtions

Post by c0nnex » 22 May 2020, 03:51

For performance reasons IF-Else in common mannor is not supported.

* Create 2 Events.
* First Event with the IF Condition, Enable "End Processing"
* Second Event with the Else or no Conditon, Enable "End Processing". If using no condition be sure to set priorities, that the no condition-action is last

This way you can easily create "switch" conditions.
if (a) -> actions a , end processing
(else) if (b) -> actions b, end processing
(else) if (c) -> actions c, end processing

Locked