Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 93 - 2625 PortGPt V2.1
P. 93

    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  91

| 88 89 90 91 92 93 94 95 96 97 98 |