Page MenuHomeFeedback Tracker

Add command for value addition
Closed, ResolvedPublic

Description

Requesting add command to help keep code shorter

Instead of having to write code like this:

_variable = _variable + 123;

You could write it like this:

// For strings:

_aString = "test ";
_aString add "one two three";

// _aString would be "test one two three";

// For numbers:

_aNumber = 0;
_aNumber add 5;

// _aNumber would be 5

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

gc8 created this task.Sep 19 2023, 9:39 AM
dedmen closed this task as Resolved.Sep 19 2023, 10:03 AM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

Not possible

gc8 added a comment.Sep 20 2023, 6:47 PM

Dedmen can you please explain why it's not possible? Just so I know not to make impossible feature requests anymore :D

  1. A script command (like add or +) doesn't know where the value came from.

It cannot differentiate between 0 add 5 or _variable add 5