Update loop images.

Neil Fraser
2015-04-30 18:01:13 -07:00
parent 276680516c
commit fae075bfb4
15 changed files with 6 additions and 5 deletions

@@ -51,7 +51,7 @@ Only the plain **if** block appears in the toolbox:
![](if.png)
To add **else if** and **else** clauses, the user needs to click on the star icon, which opens a new window:
To add **else if** and **else** clauses, the user needs to click on the gear icon, which opens a new window:
![](if-open.png)

@@ -32,7 +32,7 @@ It is less common, but possible, to create a list with values of different types
### changing number of inputs
To change the number of inputs, click on the plus ("+") icon. This opens a new window:
To change the number of inputs, click on the gear icon. This opens a new window:
![](list-create-list-modify-tooltip.png)

@@ -1,5 +1,5 @@
The **Control** category holds blocks that control whether other blocks placed in their **body** are run. (For example, in the below "repeat" block, the body contains the "print" block and its input.) There are two types of control blocks: [IfElse](IfElse) (described on their own page) and these, which control how many times the body is run and, in some cases, the value of a variable used within the body. These structures are called **loops** since the body is repeated (possibly) multiple times, reminiscent of a rope containing loops. Each pass through the loop is called an **iteration**. (How about our using the term "pass"?) For more information, see https://en.wikipedia.org/wiki/Control_flow#Loops.
The **Control** category holds blocks that control whether other blocks placed in their **body** are run. (For example, in the below "repeat" block, the body contains the "print" block and its input.) There are two types of control blocks: [IfElse](IfElse) (described on their own page) and these, which control how many times the body is run and, in some cases, the value of a variable used within the body. These structures are called **loops** since the body is repeated (possibly) multiple times, reminiscent of a rope containing loops. Each pass through the loop is called an **iteration**. For more information, see https://en.wikipedia.org/wiki/Control_flow#Loops.
# Blocks for Loop Creation

@@ -90,6 +90,7 @@ The **in text...get substring** block allows a region of text to be extracted, s
* letter #
* letter # from end
* the first letter
and ending with:
* letter #
* letter # from end
@@ -103,8 +104,8 @@ In the following example, "abc" is extracted.
This block creates a version of the input text that is either:
* UPPER CASE (all letters upper-case)
* Title Case (first letters upper-case, other letters lower-case)
* lower case
* Title Case (first letters upper-case, other letters lower-case)
The result of the following block is "HELLO".
@@ -119,7 +120,7 @@ The following block removes space characters from:
* the end of the text
* both sides of the text
The result of the following block is "hi there". (Spaces in the middle of the text are not affected.)
The result of the following block is "hi   there". (Spaces in the middle of the text are not affected.)
![](text-trim-spaces.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB