Page 77 - PortGPT_V2.1_C6_Flipbook
P. 77

Step 11:  Click on 'advanced', select 'Text', and click on 'Join' block. 'Join' block will appear

                            on workspace. Now, change its text to 'Sum of a and b is: '. Drag the variable
                            c and drop it in 'world' of 'Join' block.















                  Step 12:  From the 'Blocks', choose 'Game', and then select  'splash' block, it will appear on

                            the workspace, drag the 'Join' block and drop it to the 'splash' block.























                  Step 13:  Drag the 'splash'  block and drop it to the 'on start' block, your workspace will
                            appear as:


                                                                                    Coding Tip!

                                                                                    Join block is used to

                                                                                    combine two text or
                                                                                    values together. You can
                                                                                    use multiple join blocks
                                                                                    to  join  more  that  two
                                                                                    text or values together.

                                                                                         join ''Hello''  ''World''










                                                                                       Variables Using Block Coding  75
   72   73   74   75   76   77   78   79   80   81   82