August 2000
Intermediate to advanced
816 pages
29h 45m
English
if
if ( condition )
command1
[else
command2]
If condition is true, do command1; otherwise, do command2. Condition can be an expression using any of the relational operators <, <=, ==, !=, >=, or >, as well as the pattern-matching operator ~. A series of commands must be put within braces.
The following lines determine whether the first word in each line starts with A, uppercase or lowercase:
if ($1 ~ /[Aa]*/)
...Begins with A or aRead now
Unlock full access