May 2000
Beginner
761 pages
18h 20m
English
When making decisions, the if, if/else, if/else if/else, and switch commands are used. These commands control the flow of the program by allowing decision-making based on whether an expression is true or false.
An expression consists of a set of operands separated by operators. Operators are listed in Table 11.5 and Table 11.6 To test an expression, the expression is surrounded by parentheses. The TC shell evaluates the expression, resulting in either a zero or nonzero numeric value. If the result is nonzero, the expression is true; if the result is zero, the expression is false.
When evaluating an expression with the logical AND (&&), the shell evaluates from left to ...
Read now
Unlock full access