Conditional statements

Conditional statements such as if and switch are used to test expressions and control the flow of execution in AWK programs. All control statements start with special keywords such as if and switch to differentiate them from simple expressions. Within one conditional statement block, we can have other multiple statements separated by braces, newlines, or semicolons. Such conditional statements are known as compound statements.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.5.12