Error Messages/40866
Error message examples
The «step» size in Function Sequence must be positive (even for a decreasing sequence). Alternatively, you can add the optional parameter, strict: True, to Sequence to allow a negative step size and honor its sign
Cause
You have passed a negative value as the «step» parameter to the Sequence function without specifying the «strict» parameter to be true. You need to specify the «strict» parameter to be true to pass a negative value as the «step» parameter. Passing a positive number will still work for a decreasing sequence.
Both of the following call to Sequence will produce a decreasing sequence from 99 to 1.
Sequence(99, 1, 1);
Sequence(99, 1, -1, strict: true);
Please click on the following link to learn more about the optional «strict» parameter.
Remedies
Either specify the «strict» parameter to be true or pass in a positive value to the «step» parameter.
See Also
Comments
Enable comment auto-refresher