leopard-js / sb-edit

Javascript library for manipulating Scratch project files
MIT License
54 stars 15 forks source link

toLeopard: Non-boolean blocks should be cast to booleans in boolean inputs #88

Closed towerofnix closed 1 year ago

towerofnix commented 1 year ago

For whatever reason, Scratch lets you put the "item (index) of (list)" block into boolean inputs like "if":

set i to 1; repeat length of inputs; if item i of inputs then...

These need to be cast to boolean.