Variable type Pro Preview

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1285
  • 24 May 2019

Variable type

Next select the drop down menu and from it Write.

You will see several options for the type of the variable i.e.. the type of the data that the variable will store. There are 5 options:

  • Text- if you select that type you will be able to store any kind of text - just a single symbol like "+" ,or a word like "blue" or even a whole sentence like "This is the text stored within my first variable".
  • Numeric- if you select that type you will be able to store both integers like 1 or -5 and floating point numbers like 3.1415926.
  • Logic- if you select that type you will be able to store either True or False.
    Those values are represented by images as follow:
    •  is used to represent False values
    •  is used to represent True values
  • Arrays- we will be covering them in a later tutorial.

Depending on the case choose the appropriate type. For the purpose of this tutorial however, choose Numeric.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Instructors Remote Training
  • 136
  • 280:11
  • 156
Image for Robotics with LEGO - Level 3.5 - Measuring tools
  • 58
  • 0:00
  • 185
Image for Robotics with LEGO - Level 4.0 - Kinesthetic and Memory Game (in development)
  • 59
  • 2:58
  • 200