Applying Naming Rules with Variables in VEXcode GO

In VEXcode GO, you are required to give a name to a new variable when you create one.


Valid Name Rules

Variable names must be unique, but there are other specifications that the name must follow. 

Variable names are used in the following places:

  1. Numeric (created using “Make variable”)
  2. Boolean (created using “Make a boolean”)
  3. List (created using “Make a List”)
  4. 2D List (created using “Make a 2D List”)


Here is an overview of the criteria when choosing a valid name:

  • The name cannot use special characters.
    Illustration showing a large number with a red circle, emphasizing that names cannot include special characters, as part of the Block Tutorials in the GO category.
  • The name has to begin with a letter. It cannot start with a number.
    Illustration of a second wheel component for a block tutorial, showcasing its design and features, relevant to the GO category.
  • The name cannot use spaces.
    Illustration showing a text input field with the message 'The name cannot use spaces' highlighted, demonstrating a validation error in a Block Tutorial on the VEX Knowledge Base.
  • The name cannot be a reserved word in VEXcode GO. A reserved word is a word or name that VEXcode GO is already using.
    Illustration showing a list of reserved words in VEXcode GO, highlighting examples of names that cannot be used in programming, emphasizing the importance of avoiding these terms for successful coding.
    Examples: for, while, break, else, not.
  • The name has to be unique (only used once), but you can have different cases (one uppercase and one lowercase).
    Counter graphic illustrating the functionality of the counter block in VEX robotics programming, used in Block Tutorials under the GO category.

Possible Name Errors

When you create a variable name, if you see a “Name Taken” error, it means there is a duplicate name in any of the groups above. 

Diagram illustrating the steps for creating a block tutorial in the GO category, featuring labeled sections and arrows to guide users through the process.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: