Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: Toggle-Funktion für boolesche Werte bei Systemvariablen in Programmen #158

Open
manitu-opensource opened this issue Sep 21, 2017 · 3 comments
Labels
⚓ upstream issue This is a bug/issue for/in upstream software (OCCU, etc.) 💡 enhancement-ideas New feature or change request 🏷️ WebUI This refs the WebUI component

Comments

@manitu-opensource
Copy link

manitu-opensource commented Sep 21, 2017

Es wäre toll, wenn es eine Toggle-Funktion für boolesche Werte bei Systemvariablen in Programmen gäbe, sprich den Wert der Variable zu tauschen (true -> false, false -> true).

Gerade für Programme, in denen man eine boolesche Systemvariable bei Vorliegen einer weiteren Bedingung umkehrt, werden dadurch weniger komplex (z.B. eine Programm-basierte "Taster"-Lösung, um Licht anzuschalten, wenn es aus ist, und aus, wenn es an ist, sofern man sich dabei einer Systemvariable bedient).

Bislang braucht man dazu soetwas wie

WENN
    z.B. Tastendruck
        UND
    Variable IST GLEICH false
DANN
    Variable SETZEN AUF true
SONST WENN
    z.B. Tastendruck
        UND
    Variable IST GLEICH true
DANN
    Variable SETZEN AUF false

Natürlich könnte man in obigem Beispiel auch direkt die Beleuchtung toggeln, aber in größeren Setups möchte man vermutlich mehrere Bedingungen haben, die das Licht toggeln.

Mit Vorliegen einer Booleschen-Toggle-Funktion wäre das Skript reduzierbar auf

WENN
    z.B. Tastendruck
DANN
    Variable UMKEHREN
@jens-maus jens-maus added 💡 enhancement-ideas New feature or change request 🏷️ ReGaHss This refs the ReGaHss component ⚓ upstream issue This is a bug/issue for/in upstream software (OCCU, etc.) labels Sep 26, 2017
@general1977
Copy link

general1977 commented Oct 28, 2017

Das macht man (z.B.) so:

Variable = !Variable;

@jens-maus
Das funktioniert auch. Da braucht es keine Erweiterung dafür. Einfach noch ein kleines Skript zum restlichen Programm laufen lassen. ;)

@jens-maus
Copy link
Owner

@general1977 Ich denke das was hier gewollt ist, ist eine Möglichkeit in der graphischen Programmierumgebung und nicht im Skripting der ReGa.

@manitu-opensource
Copy link
Author

Ja, es geht in der Tat um die GUI / den Editor für Programme.

@jens-maus jens-maus added 🏷️ WebUI This refs the WebUI component and removed 🏷️ ReGaHss This refs the ReGaHss component labels Nov 3, 2017
@jens-maus jens-maus changed the title Toggle-Funktion für boolesche Werte bei Systemvariablen in Programmen (enhancement) WebUI: Toggle-Funktion für boolesche Werte bei Systemvariablen in Programmen Nov 10, 2017
@github-actions github-actions bot added the 🧊 stale Ticket is in a stale state (about to be closed) label Sep 7, 2023
@jens-maus jens-maus removed the 🧊 stale Ticket is in a stale state (about to be closed) label Sep 7, 2023
@jens-maus jens-maus added this to the future release milestone Sep 7, 2023
Repository owner deleted a comment from github-actions bot Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚓ upstream issue This is a bug/issue for/in upstream software (OCCU, etc.) 💡 enhancement-ideas New feature or change request 🏷️ WebUI This refs the WebUI component
Projects
Development

No branches or pull requests

3 participants