In the previous chapter, we looked at the basic building blocks of Jython scripts—that is, the data types and structures used to represent information. In this chapter, we expand on these concepts and explore the next programming construct: statements.
Expression statements are used to compute values and to invoke functions. They are frequently used in an interactive
wsadmin session, where the result (if it is not
None) is displayed. This can be seen in Listing 3.1 (lines 12–13). When
wsadmin is not used in an interactive mode, the results of expression statements are discarded, as also shown in Listing 3.1 (line 8).