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

ReGaHSS: foreach [11/12 BP-12] -> falscher Wert nach Schleifenende #2622

Open
BadenPower opened this issue Jan 17, 2024 · 0 comments
Open

ReGaHSS: foreach [11/12 BP-12] -> falscher Wert nach Schleifenende #2622

BadenPower opened this issue Jan 17, 2024 · 0 comments
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component

Comments

@BadenPower
Copy link

Describe the issue you are experiencing

Ist der 2. Parameter der foreach-Anweisung vom Datentyp integer, dann enthält die im 1. Parameter verwendete Variable, nach Beendigung der Schleife, einen um 1 höheren Wert, als die tatsächliche Anzahl der Schleifendurchläufe. Dies ist auch der Fall, wenn die Schleife mit der Anweisung break verlassen wird.

Describe the behavior you expected

Erwartet würde, dass der Wert der letzten Ausführung beibehalten und nicht um 1 erhöht wird.

Steps to reproduce the issue

Ausführung des folgenden Skriptes unter "Skript testen":

WriteLine("Start");
WriteLine(dom.BuildLabel());
integer lEnum;
integer lParam2 = 10;
foreach(lEnum,lParam2)
{
  WriteLine(lEnum);
  if(lEnum == 5)
  {
    break;
  }
}
WriteLine("--------------------------------------------------");
WriteLine(lEnum);
WriteLine("Ende");

What is the version this bug report is based on?

CCU3 mit ReGaHSS-Version R1.00.0388.0235

Which base platform are you running?

rpi3 (RaspberryPi3)

Which HomeMatic/homematicIP radio module are you using?

n/a

Anything in the logs that might be useful for us?

bestehend seit:
unbekannt (bereits mit ReGaHss-Version R1.00.0388.0102)

Additional information

Ausgabe des Skriptes:

Start
R1.00.0388.0235
1
2
3
4
5
--------------------------------------------------
6
--------------------------------------------------
--------------------------------------------------
1
2
--------------------------------------------------
3
Ende
@BadenPower BadenPower added the 🐛 bug-report Something isn't working label Jan 17, 2024
@github-actions github-actions bot added the 🧊 stale Ticket is in a stale state (about to be closed) label Apr 17, 2024
@jens-maus jens-maus removed the 🧊 stale Ticket is in a stale state (about to be closed) label Apr 17, 2024
Repository owner deleted a comment from github-actions bot Apr 17, 2024
@jens-maus jens-maus added the 🏷️ ReGaHss This refs the ReGaHss component label Apr 17, 2024
@jens-maus jens-maus added this to the future release milestone Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component
Projects
Development

No branches or pull requests

2 participants