Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Add warning when `arg` is used in subtraction.

Open sovdeeth opened this issue 10 months ago • 0 comments

Suggestion

When the arg expression is used in subtraction, like arg - 1, add a warning about this being interpreted as subtraction, not as arg 1. Suggest using arg or arg 1 instead.

Why?

Many users get confused when arg-1 / 10 is parsed as arg - (1/10) instead of arg / 10 when using commands with 1 argument. A warning would help clarify these issues.

Other

See #7733

Agreement

  • [x] I have read the guidelines above and affirm I am following them with this suggestion.

sovdeeth avatar Mar 21 '25 23:03 sovdeeth