Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that the inspiration library is filled with written code like this, so be sure to look here for inspiration.

Most Common errors

A non-parseable code will cause the simulation to fail. Below, you can find a list of the most common errors when writing code in the programmeable controller:

  • No semicolon ( ; ) at the end of a line

  • Incorrect usage of ‘==’ (for if-statement) and '='

  • Not closing { } or ( ) brackets properly

  • Instead of having semicolon at the front of the comment, accidentally put // ;

  • Usage of an underscore ( _ ) is not allowed in parameter naming

  • Spelling mistake in parameter names. Code is case-sensitive