Blockly rubber ducking

This is driving me nuts


Can anyone see a reason why msg.hashtag = "" ??

If I set var hashtag to "test" - then it gets output as test

Rubber ducking has worked - hashtagEnd was not correctly calculated at this point (I adjusted its value further down the script) and was < hashtagStart hence reason for substring being = "" :slight_smile:

2 Likes