contlab1.mm
in the mcr area of the TRAIN option tree (this is the
option tree you created in Lab 2 - Option Trees).TAB= which
will be a table.IF, ELSEIF,
and ELSE).IF you can
use CALCULATOR to compute
x = (count mod 2); by doing
this you will know if the count is even (x=0).NM2KM).
INVOKE to get the value of
nxm.sys.inc.Constants.NM2METERS.NM2METERS you
can use calculator to convert this to NM2KM
(if you remember back to high school, you will recall
that there are 1000 meters in a kilometer, so this is
just a simple division using CALCULATOR).UPDATE to add your macro to the
dictionary and try it out. The output should look similar to this:
nM> contlab1 {A=1,B=2,C=3}
Count is -9 (odd)
Count is -6 (even)
Count is -3 (odd)
Count is 0 (zero)
Count is 3 (odd)
Count is 6 (even)
Count is 9 (odd)
0nmi = 0.0km
1nmi = 1.852km
2nmi = 3.704km
3nmi = 5.556km
4nmi = 7.408km
5nmi = 9.26km
KEY=A VALUE=1
KEY=B VALUE=2
KEY=C VALUE=3