This block works for both EV3 Robot and Ruby Robot!
The Declare Variable block declares a variable!
To apply the block to a program:
- Define a name for the variable. Choose short, meaningful names with no spaces or symbols.
- Select the variable type (integer, double, String, boolean).
- Define the initial value of the variable in the Numerical Data Block at the end of the block.
Configuration
Parameter | Description | Compatible Blocks | Range |
declare |
The name of the variable. |
N/A |
N/A |
as |
The variable type (integer, double, String, boolean). |
N/A |
N/A |
to be | The initial value of the variable. | 0 to ∞ |
See also:
Comments
Please sign in to leave a comment.