Line seperator. (Shorter lines)

Monkey Forums/Monkey Beginners/Line seperator. (Shorter lines)

Pakz(Posted 2015) [#1]
I read in the update about that the period for line seperation. Is it already possible to seperate lines?

In Blitz this was not possible afaik.

Anyone want to show a example?


Samah(Posted 2015) [#2]
Double post.


Samah(Posted 2015) [#3]
There is no explicit line continuation character. Instead it guesses based on what operator the line ends in.
If the line ends in a comma or a mathematical symbol it will assume that the code spans multiple lines.
Print("Hello " +
  "World!!!")

a = b -
  2 + 
  3 *
  7

DrawText("Hello",
  100,
  200)

And so on.


Pakz(Posted 2015) [#4]
Thanks, I learned something :) This will certainly help me!