Skip to content

"change [variable] by (1)" block does not result in NaN when manipulating strings #1879

Open
@thisandagain

Description

@thisandagain

Expected Behavior

Executing the "change [variable] by (1)" block on a variable that is currently set to a string should result in NaN

Actual Behavior

The variable is set to 0

Steps to Reproduce

image

Reference

https://scratch.mit.edu/projects/275276918
https://llk.github.io/scratch-gui/develop/#275276918

Major HT to Scratcher hahasamian for identifying this issue!

/cc @kchadha @ktbee

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions