Unable to pass a number variable as an INTEGER argument to a customer block


#1

In the block below, everything works fine if the “car front” variable is replaced by hardcoded number like “2”. If I enter assign “2” or any number to the variable “car front” and then use it with my custom green block, the error happens.

How to pass a number that is an integer and equivalent to passing “2” or “1” hardcoded?

The error says that the number is a float when I think it needs an integer.