Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Asked
Resolved Resolved by DJ Sures!

Dollar Sign In Blocky Variables

I am in the midst of learning Blocky and when I updated the program I noticed a dollar sign appear in front of all my Variables. At first I ignored it but then I noticed a program would not run like in the online tutorial.

I have attached an image with a screen shot where JD is supposed to count down from 10 to 1 and then say Happy New Year. When I duplicate the program and run it JD will only count from 10 to 2 and then says Happy New Year. He does not say 1 as he is supposed to and does in the demo video. https://youtu.be/MRcSs-ImcF4?t=410

You can see in the screen shot that my blocky is the same as the tutorial yet I am getting different results.User-inserted image



Best Regards,

Tim


Related Hardware EZ-Robot EZ-B v4
AI Support Bot
Related Content
Synthiam
Synthiam
#1  
Ah, i see with the looping that there's something not right there. I think the generated FOR loop requires a <= rather than <. I'll fix it for tomorrow's beta release:)

A $ in javascript variable means it is public/global. Blockly generates JavaScript, which means the variables will be private by default. To be public, the variables can start with a $ (dollar sign).

User-inserted image
#2  
Thanks DJ!  Your quick response is most appreciated! Looking forward to the next release.
Synthiam
#3  
You bet - the robot will count down to 1 for ya:) and celebrate New Years.. either 5 months late or 7 months early depending on our perspective hahaha. Stay tuned for the update
#4  
LOL Well it may be 7 months until I have a good handle on this coding but I will eventually get it. You have a great product.
Synthiam
#5   — Edited
Thanks! We’re putting a new section up soon that will have a more organized manual for the ARC software. It’ll come handy for you
#6   — Edited
I also would like  a more organized manual for the ARC software. It’ll come handy for me also.

EzAng
#7  
Thanks All,

My point was not to actually make a countdown. My point was that my program gave different results than the sample I was following and that concerned me. DJ addressed it. I appreciate the tips though.

Best,

Tim
#8  
ok - Be well, thanks

EzAng
#10   — Edited
Hi DJ,

Forgive me if I am missing something but when I click the link it just leads me back to my original post. I see that the Beta was updated so I will download it. Thanks

Best,

Tim