Page 87 - Computer Genius Class 06
P. 87

Notes


                                                                                   plash  loc  is used to display a
                                                                                message on the screen  or some time.
                                                                                           splash ' '       ' '

                 Step 4      rag the  splash   loc   and drop it in the  on start   loc .

                 Step 5       Type the message   ello  orld..    in the  splash   loc   and the output screen  ill display


                            the message   ello  orld..




                                       ello  orld..
                                                                              ello  orld..




                  ell done  you ha e created your  irst  loc  code program
                 Logical operators


                  ogical operators are the  undamental  loc s  hich adds a decision ma ing capa ility to code. The
                 three most important logical operators are         and   T.

                                                          Logical Operator




                       AND                                       OR                                       NOT

                 AND operator

                 AND operator is used to check if two or more conditions are TRUE or  es.
                  n     operator

                      all the conditions are true  the operator returns T    or  es.
                      any one o  the conditions  ails  the operator returns F     or  o.

                 Example  1:   ou  should  go  to  play  a ter          or  an  hour  only  a ter  you  ha e  completed  your
                 home or .
                 Condition:

                 1.   a e you completed your home or
                 2.   s the time past



                                                                                    Using MakeCode Arcade     85
   82   83   84   85   86   87   88   89   90   91   92