Heads Up - DUELink Script - Basic/C#/C/C++ Programmers - For loops

DUELink’s scripting language has a For loop in “Basic style” as below:

for i=1 to 5 
   println(i)
next

A basic programmer would expect five lines to be output. But, with DUELink only four lines, 1..4, are printed. This is consistent with Python For loops.

This characteristic is documented. But easily overlooked.

1 Like

Correct. How many BASIC programmers are out there? We used the simple format but then made it work like all modern languages.

1 Like

:raised_hand:

BASIC is the language I regularly use for the development of cross platform applications.

But, wouldn’t a C# programmer have the same issue? Or C/C++? I changed the thread title to make it more encompassing.

I am not advocating a change. Just want to “memorialize” a note in case someone in the future gets confused.

1 Like

We had this the other way around. I guess there is no right answer here. We can easily change either way.