The value of variable *data_ff* (the golbal var) will be either "0" or "1". This corresponds to the first or second element in your list ff. I created the list ff# just so that I could easily get a value for filf that was an integer, 2 or 4 inches. So (nth (atoi *data_ff*) ff#) retrieves the first or second element form list ff# depending on the value of *data_ff*Originally Posted by Lions60
list ff = ("2"" "4"")
list ff# = (2 4)
I wasn't sure if atoi would work on list ff as above but I have now tested it and it does so you can do without the list ff#
so change
(setq ff '("2\"" "4\"")
ff# '(2 4)
)
to
(setq ff '("2\"" "4\""))
and
filf (nth (atoi *data_ff*) ff#)
to
filf (atoi (nth (atoi *data_ff*) ff))
see attached