1.4.4 Decision Blocks

For this example we will be using the code below:

This code in an Activity Diagram would look like:

In English this would be read as:
If the food is good, then assign the Rating to 4...
If it is anything else, assign it to 1.