radio.onReceivedString(function (receivedString) { basic.showString(receivedString) if (receivedString == "OK") { done = 1 } else { done = 0 } }) let x = 0 let done = 0 basic.showIcon(IconNames.Heart) radio.setGroup(1) basic.forever(function () { x = 0 for (let index = 0; index < 9; index++) { basic.showNumber(x) radio.sendNumber(x) basic.pause(2000) done = 0 while (done == 0) { basic.showIcon(IconNames.No) basic.pause(1000) } basic.showIcon(IconNames.Heart) x += 1 } })