Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Feature Request] Update Array Editing

Open CrowbarToolsRobot opened this issue 1 year ago • 0 comments

plurninja via Discord:

Am I blind, or is there no way to insert/replace into arrays? I was about to make a feature request, but want to make sure I'm not just being silly. For example, the $arrayAdd[array, new-item, at-start] seems weird to me that we are using a boolean for the at-start. I feel like an int index would work better. I've basically had to make a really convoluted mess of custom variables just to get the logic of at-start = if (i == null || i is outofbounds then false) else if (i == 0 then true) otherwise -> split array at index i, add element, re-add split array after index i if inserting || i+1 if replacing

CrowbarToolsRobot avatar May 10 '24 21:05 CrowbarToolsRobot