When you painting the Sequence graph, I am very concerned about the logic of the condition. It also searched a lot of information about the sequence graph, basically not mentioned, and some even said that the conditional logic cannot be represented in the sequence figure. This is wrong, and more surely should be that it is not suitable for painting too complex conditional logic in the sequence diagram, it is best to use a different logical branch with a sequence figure. If you must draw each branch in a picture, use the Activity map more appropriate. The script is used to add a message to the message, but you can also use the script to represent the conditional logic, the method is as follows: 1. Select Tools-> CREATE-> Text, create a text box, enter the script text in the text box; 2 Select the text box, hold down Shift and select the message. 3. Select Edit-> Attach Script. By the above method, the message and script are bound. The script can move with the message. In this way, the simple IF, ELSE condition branch can be expressed, although the code cannot be generated through this script, but the developer can know the logical flow through the script.