|
You can use conditional jumps in your script:
The following script computes the preferred length of a bed for a person 'age' years of age:
if age <= 3
length = 1.20
elsif age <= 8
length = 1.60
else
length = 2.00
endif
A variant spelling for elsif is elif.
© ppgb 19991112