How to use Multiple Print Blocks on Blockly

How to use Multiple Print Blocks on Blockly

In the previous module, we learned how to output a piece of text. When we did, that text appeared on one line. What if we want to display text on separate lines? We can accomplish this by using multiple print blocks.

First, click on the Text tab. Drag and drop the print block. Type “Hello”.

Drag another print block and place it under the existing print block. Type “World”.

Run the program. You’ll notice that the 2 words will be printed on separate lines.

The print block produces a line break at the end, so by using multiple print blocks, we can display text on multiple lines.

Note: You can also duplicate blocks by right-clicking on blocks and clicking duplicate OR click on a block and press Ctrl-C + Ctrl-V (or Cmd-C + Cmd-V).

 

Now your take on this argument.

We would also like to hear what you feel about the topic we discussed today. Your feedback is very important to us. Feel free to drop your comments and recommendations. If you have a contrary opinion, you can drop that too.

You can also join our Facebook Page CRMNigeria for more updates. You can do that by clicking on the link or searching for our page on Facebook.

 

 

You can also join our WhatsApp Group Here.
Kindly Subscribe to CRMNIGERIA Articles by Email