Adding Blank Lines🔗
Note that in prior examples, there are blank lines in the script, between lines with text. These blank lines are not necessary, and are only there to make the program more readable. The following program would do exactly the same thing if it had blank lines between the questions and the text (as written above):
Hi there!
*question: What's your favorite color?
Chartreuse
Yuck
Mauve
Awful
Taupe
What's taupe?
Some other stupid color.
That's nice! My favorite color is clear.
--this is a comment, it's really just a note.
*question: If you had dogs, how many would you have?
*type: number
That's a stupid number of dogs to have.
But this is both ugly and difficult (for you, the programmer) to read. You should use line breaks (blank lines) to make your programs prettier. The only time lines breaks change what your program does, is when they are used between two lines of text. So:
Well, what do you know?
If it isn't Mr. Duck.
would display "Well..." and "If it isn't..." on adjacent lines, one on top of the other, whereas:
Well, what do you know?
If it isn't Mr. Duck.
would display the same thing, but with a blank line between them. So, when you're using multiple text lines in a row, you do need to make sure that the blank lines you use reflect what you want the user to actually see.
Use *html
in the way shown below if you need to separate the text lines even more (the more line breaks you add, the further the lines will be):
Well, what do you know?
*html
<br><br>
If it isn't Mr. Duck.
Next: Adding line dividers