[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.3 Truth Values and Conditions
In certain contexts, expression values also serve as “truth values;” i.e.,
they determine what should happen next as the program runs. This
section describes how awk
defines “true” and “false”
and how values are compared.
6.3.1 True and False in awk | What is “true” and what is “false”. | |
6.3.2 Variable Typing and Comparison Expressions | How variables acquire types and how this affects comparison of numbers and strings with ‘<’, etc. | |
6.3.3 Boolean Expressions | Combining comparison expressions using boolean operators ‘||’ (“or”), ‘&&’ (“and”) and ‘!’ (“not”). | |
6.3.4 Conditional Expressions | Conditional expressions select between two subexpressions under control of a third subexpression. |