logical conditions, more than 2 conditions

  • gilliam
  • gilliam's Avatar Offline Autor
  • Junior Mitglied
  • Junior Mitglied
  • DS-12
  • Beiträge: 22
  • Dank erhalten: 10

logical conditions, more than 2 conditions wurde erstellt von gilliam

Posted 25 Dez. 2020 10:51 #1
Hello,
under logical conditions, it would be nice to be able to use more than 2 conditions to get a result.
THANK YOU ;)
von gilliam

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Jürgen
  • Jürgen's Avatar Offline
  • Moderator
  • Moderator
  • Beiträge: 4285
  • Dank erhalten: 2066

Jürgen antwortete auf logical conditions, more than 2 conditions

Posted 25 Dez. 2020 11:24 #2
actually it works now, you just have to nest it. If the operation is fulfilled, I trigger the next logical switch.
Gruß
Jürgen
the master of the Desaster
von Jürgen
Folgende Benutzer bedankten sich: gilliam

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • abief
  • abief's Avatar Offline
  • Premium Mitglied
  • Premium Mitglied
  • I'm here, there and elsewhere!
  • Beiträge: 95
  • Dank erhalten: 19

abief antwortete auf logical conditions, more than 2 conditions

Posted 25 Dez. 2020 20:12 #3
logical operators are, by definition, binary or unitary. The classical definitions are AND, OR and NOT, sometimes expanded to XOR (as done by Jeti).

AND requires both values need to be true, i.e. TRUE AND TRUE returns TRUE, and all other combinations return FALSE
OR requires only one value to be true, i..e. FALSE OR FALSE returns FALSE, and all other combinations return TRUE
NOT negates the value, i.e. NOT TRUE is FALSE
XOR requires only one value to be true, i.e. TRUE XOR TRUE will return FALSE, as it would do FALSE XOR FALSE.

to combine different logical operators, what you need to do is combine the result of one logical condition with a second logical condition. As an example:
let's assume you want a condition where Sa, Sb, Sc and Sd are all TRUE: then you need to configure L1 is Sa AND Sb, if you want to combine with Sc, then L2 as L1 AND Sc, and then L3 as L2 AND Sd.

Hope it helps.
Field ready: Taborca (3.4m), Ocelot (1.6m), Alula (0.6m).
Factory line: FVT-3 (1m), A6M Zero (1.6m), Tiger Moth (2.2m), Grumann Goose (2m) and Beechcraft D18 (1.5m).
Design phase: Szd-20x Wampir II (7.5m), Rutan Quickie (1.6m), both parked.
Dreaming: Weird push-pull called Double Trouble (2.4m)
Last Edit:25 Dez. 2020 20:16 von abief
Letzte Änderung: 25 Dez. 2020 20:16 von abief.
Folgende Benutzer bedankten sich: gilliam

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • gilliam
  • gilliam's Avatar Offline Autor
  • Junior Mitglied
  • Junior Mitglied
  • DS-12
  • Beiträge: 22
  • Dank erhalten: 10

gilliam antwortete auf logical conditions, more than 2 conditions

Posted 26 Dez. 2020 09:04 #4
thank you for the explanations, it seemed easier to me to have a combination with at least 3 conditions instead of writing them two by two, good flights in 2021.
;)
von gilliam

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 1.043 Sekunden