PythonEditor icon indicating copy to clipboard operation
PythonEditor copied to clipboard

Logic blocks: add an integer block at least in the right member

Open titimoby opened this issue 7 years ago • 2 comments

When adding a logic block like ( ) >= ( ), your next action will be to put a variable or a pin value on one side. But you then have to search for the integer block (hidden in math, why not) Is it possible to have default logic block like: ( ) >= ((0))

titimoby avatar Mar 06 '17 19:03 titimoby

The problem is that particular block also has to handle == or != that could work with more than just numeric values (most obviously, booleans, or nested calculations) -- hence the lack of a numeric default.

Out of interest, where else would you expect to find a numeric block if not in "Math"..?

ntoll avatar Mar 16 '17 15:03 ntoll

I'm just used to find it under Logic in pxt, that's not a huge concern

titimoby avatar Mar 16 '17 15:03 titimoby