gawk: Statements

1 
1 7.4 Control Statements in Actions
1 =================================
1 
1 "Control statements", such as 'if', 'while', and so on, control the flow
1 of execution in 'awk' programs.  Most of 'awk''s control statements are
1 patterned after similar statements in C.
1 
1    All the control statements start with special keywords, such as 'if'
1 and 'while', to distinguish them from simple expressions.  Many control
1 statements contain other statements.  For example, the 'if' statement
1 contains another statement that may or may not be executed.  The
1 contained statement is called the "body".  To include more than one
1 statement in the body, group them into a single "compound statement"
1 with braces, separating them with newlines or semicolons.
1 

Menu