diff --git a/DNCL3.js b/DNCL3.js index 22f054b..8f9a7cd 100644 --- a/DNCL3.js +++ b/DNCL3.js @@ -525,7 +525,7 @@ export class DNCL3 { test: { type: "BinaryExpression", left: astvar, - operator: step.value > 0 ? "<" : ">", + operator: step.value > 0 ? "<=" : ">=", right: endval, }, update: {