Michael,
What exactly is it you're trying to achieve?
From what you've said, it looks like you want to present your user with a list of possible options to pick from, and have one of these as the default answer.
If that *is* the case, you want to use INITGET to define your list of options and GETKWORD to get your user to select one of these, and COND to tell your routine what do with the selected option.
An example of this might be:
(DEFUN c:WhatsUU ()
(INITGET "0" "1" "2" "3" "4");define the list of options
(SETQ
uu (GETKWORD "\nSelect an option [0, 1, 2, 3, 4]<0>: ");Prompt your user to select an option. <0> indicates that "0" is the default
);SETQ
(COND
((= uu "0")(SETQ multiplier 0))
((= uu "1")(SETQ multiplier 1))
((= uu "2")(SETQ multiplier 2))
((= uu "3")(SETQ multiplier 3))
((= uu "4")(SETQ multiplier 4))
);COND
(SETQ result (* 10 multiplier))
(ALERT multiplier)
);DEFUN
You would further use If and NOT to set your default value:
(DEFUN c:WhatsUU ()
(INITGET "0" "1" "2" "3" "4");define the list of options
(SETQ
uu (GETKWORD "\nSelect an option [0, 1, 2, 3, 4]<0>: ");Prompt your user to select an option. <0> indicates that "0" is the default
);SETQ
(IF
(NOT uu)
(SETQ uu 0)
);IF
(COND
((= uu "0")(SETQ multiplier 0))
((= uu "1")(SETQ multiplier 1))
((= uu "2")(SETQ multiplier 2))
((= uu "3")(SETQ multiplier 3))
((= uu "4")(SETQ multiplier 4))
);COND
(SETQ result (* 10 multiplier))
(ALERT multiplier)
);DEFUN
I hope that this *is* what you're trying to do. If not, ignore it!
If it is, I hope it helps.
dJE