ScratchData LogoScratchData
Back to grandpasp2's profile

Cloud Var Selector

GRgrandpasp2•Created May 28, 2025
Cloud Var Selector
1
2
10 views
View on Scratch

Instructions

Since a Cloud Variable (or any variable) can't be "referenced" by name, the code to choose what variable to write to usually involves an ugly series of nested if-else blocks. Instead, I use a broadcasted Analog Variable message, and a series of hard-coded "receivers" (unfortunately, a message receiver cannot use a variable). See Inside.

Description

I developed this for an up-coming project and decided to share this stand-alone.

Project Details

Project ID1181904335
CreatedMay 28, 2025
Last ModifiedMay 28, 2025
SharedMay 28, 2025
Visibilityvisible
CommentsAllowed