This is the first set of blocks. You will notice a big block that looks similar to a bracket that surrounds all the other blocks. The text on it sayss "when 'Screen1'.Intialize do". This means that when the Screen selected in the pull down menu visible (the part that says "Screen1") starts (or intializes), all the other blocks inside this big block will run. This block can be found in the brown "Control" tab on the left. Drag it into the main working space and make sure the screen in the pulldown menu is set to "Screen1".

If and When

Next we are going to use an "if" block. It is the block right inside the "when" block we just made. It checks to see if something is the case (whatever is plugged into the "if" section or opening in it) and then runs the blocks plugged into the "then" section/opening. It is also found in the control tab. Now go to the blue "Math" section on the left and drag the block that looks like one opening next to an "=" sign into the opening in the "if" block we just made. Next go to the section called "TinyDB1" under "Screen1". Find the purple block that says "call 'TinyDB1'.GetValue" (it is purple and looks exactly like the one in the picture, except for the red block attached to it). Drag it into the left slot in the "=" block we made. This block checks a file or "database" on your phone to see if a value is there. We will be using this block to see if a password is already made. Drag the red block that is currently in the "valueIfTagNotThere" slot of the purple block into the "tag" slot instead. Type "accountMade" inside the red block that is in the "tag" slot. This is the name of the value in that "database" mentioned earlier. We will set what that value is in the next step. Now we need to tell the app what the value will come back as if it cannot find it in the database, that is what the "valueIfTagNotThere" slot is for. Go to the "Math" tab on the left and find the "0", it should be at the very top of the list. Drag that into the "valueIfTagNotThere" slot. Drag another into the right slot of the "=" block and type in "1" instead of "0". Lastly, go to the "Control" tab and drag out the "open another screen" block. Place it right below the blue "=" block, inside the "if" block.

Explanation

What is happening here is as follows: The screen starts and runs the "if" block. The "if" block checks what the value of "accountMade" in the database is and if it equals "1", the app switches to "Screen2". If it does not equal "1", it does nothing.