Page 97 - Digicode_AI_class_6
P. 97
Splash block is used to display a
message on the screen for some time.
splash '' ''
Step 4 Drag the 'splash' block, and drop it in the 'on start' block.
Step 5 Type the message 'Hello World..!!' in the 'splash' block, and the output screen will display
the message 'Hello World..!!'
Hello World..!!
Hello World..!!
Well done, you have created your first block code program!
Logical operators
Logical operators are the fundamental blocks which adds a decision-making capability to code. The
three most important logical operators are AND, OR and NOT.
Logical Operator
AND OR NOT
AND operator
AND operator is used to check if two or more conditions are TRUE or Yes.
In AND operator:
If all the conditions are true, the operator returns TRUE or Yes.
If any one of the conditions fails, the operator returns FALSE or No.
Example 1: You should go to play after 6 PM for an hour only Leadership & Responsibility
after you have completed your homework. Initiative
Condition:
1. Have you completed your homework?
2. Is the time past 6 PM?
Using MakeCode Arcade 95

