Runtime Error java.lang.Boolean cannot be cast to java.lang.String?

Why do I get this error?
It appears from time to time is not always.
image

You’re mixing variable types. Boolean refers to “true” or “false”, while a string is a piece of text.

They have to fix an issue where you can mix things up, like certain things only work with a Boolean, and you’re not able to input a String, but some let you input anything, for example… Where youre to enter a String, it let’s you enter an Int. When it’s a Boolean, only String and Boolean work. It’s kinda weird.

I’d rather they left it in… If you know what you’re doing, you can make some really janky contraptions which works, while being very bad code.

It is not our job to fix user logic problems.

4 Likes