|
if..then..else
|
Batch language command
|
|
Flow control statement.
|
Syntax
|
if (Cond){..body1..} else {..body2..}
|
Notes
|
Cond is a logical expression. If cond evaluates to non-zero, body1 is executed, otherwise, if body2 is present it is executed (the 'else'clause is optional). The brackets {} must be included in the statement, even for single statement bodies.
|
Examples
|
if (Transition(i,j)) { mx[i][j] := transitionRate; } else {
mx[i][j] := transversionRate; }
|
|
Last modified: 8/19/2002 |
|
|