4+0=40? Addition is broken [RESOLVED]

When adding together two variables in blocks, they get registered as text, and the numbers just get put together instead of being added together. Idk how to really explain this, please fix this.

I think you are using the text adding block, not the math block.

1 Like

Yeah, that’s concatenation… you’re taking the text value of the two inputs and just adding the second one onto the end of the first. You could try making two property values and setting them as integers, and then using the blocks to add them together (there are also math input blocks that are automatically set to numeric values if you want to use those instead).

I am using math blocks, not the “create text with” blocks. Replacing the variables with properties fixes it though.

Nope.ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

screenshot?