☄️
SpaceTode
  • Introduction
  • Element
  • Properties
  • Data
  • Arguments
  • Rules
  • Diagrams
  • Inputs
  • Outputs
  • Transformations
  • Symmetries
  • Symbols
  • Event Arguments
  • Maybe
  • Point of View
  • Actions
  • Mimic
  • Sub-Elements
  • Blocks
  • Scoping
  • JavaScript
  • Behave
  • Tabs and Spaces
Powered by GitBook
On this page

Was this helpful?

Sub-Elements

You can create elements inside elements. This can help you to organise your code. Sub-elements do not appear in the SandPond menu.

element Snake {

    element Head {
        // Snake.Head code goes here...
    }

    element Tail {
        // Snake.Tail code goes here...
    }
}
PreviousMimicNextBlocks

Last updated 4 years ago

Was this helpful?