Skip to content

Fixed array functions storing and comparing values as strings - #411

Open
Daaisukidayo wants to merge 1 commit into
tryforge:devfrom
Daaisukidayo:patch
Open

Fixed array functions storing and comparing values as strings#411
Daaisukidayo wants to merge 1 commit into
tryforge:devfrom
Daaisukidayo:patch

Conversation

@Daaisukidayo

@Daaisukidayo Daaisukidayo commented Sep 6, 2026

Copy link
Copy Markdown
Contributor
  • $arrayIncludes parses its value, but every function writing into an array kept storing strings, so $arrayIncludes[nums;1] was false on an array built by $arrayLoad or $arrayPush, while $arrayIndexOf on the same array returned 0, and the opposite happened on $arrayPushJSON arrays.

  • $arrayLoad, $arrayPush, $arrayUnshift and $arraySplice now store numbers and booleans as such, and $arrayIncludes, $arrayIndexOf and $arrayLastIndexOf parse the value they look for the same way.

  • Wrapping a value in double quotes keeps it as a string, just like before.

@xNickyDev xNickyDev self-assigned this Sep 8, 2026
@xNickyDev xNickyDev added not tested Bug has not been reproduced blocked patch labels Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked not tested Bug has not been reproduced patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants