Variables

BlocklyProp reference for VARIABLES blocks

Block availaiblity varies by board type.


set variable

Compatible with all Propeller board types (except Scribbler Robot)

The set variable block allows you to create a variable and assign it an initial value. Once that is done, you can use this block to access any variable you have created to use it elsewhere in the program.

  1. Click the item drop-down and choose a name, then type in a unique name for your variable.  See About Naming Things for the rules.
  2. Attach an initial value with either a number value block or a text string value block.

Now, any time you want to change the value of your variable in the program again, you can use this block and select its name from the item drop-down.  Your variable will also be accessible from any other block that has an item drop-down menu, such as the use variable block below.


use variable

Compatible with all Propeller board types (except Scribbler Robot)

The use variable block provides the value of the variable selected in the drop-down menu when inserted into other blocks.


wxConnldx variables

  Compatible with the Activity Board WX and Badge WX only.

These four default variables become available under the Variables menu when the COMMUNICATE > WX Module > Advanced > Advanced WX connect block is placed into the BlocklyProp workspace.


wxEvent

  Compatible with the Activity Board WX and Badge WX only.

This default variable become available under the Variables menu when the COMMUNICATE > WX Module > Advanced > Advanced WX poll block is placed into the BlocklyProp workspace.


wxHandle variable

  Compatible with the Activity Board WX and Badge WX only.

This default variable block become available under the Variables menu when certain COMMUNICATE > WX Module > Advanced blocks for data handling are placed in the BlocklyProp workspace.


wxld variable

  Compatible with the Activity Board WX and Badge WX only.

This default variable block become available under the Variables menu when certain COMMUNICATE > WX Module > Advanced blocks that perform data handling are placed in the BlocklyProp workspace.