Re: Simple question
- To: mathgroup at smc.vnet.net
- Subject: [mg59294] Re: Simple question
- From: "Valeri Astanoff" <astanoff at yahoo.fr>
- Date: Fri, 5 Aug 2005 01:21:23 -0400 (EDT)
- References: <dcschl$q3c$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
This is the way i would do it : In[1]:=cond=" ";test=True; While[test, cond=InputString["Please type the conditions S or C or F"]; If[test=!MatchQ[cond,"S"|"C"|"F"], Print["Conditions should be S or C or F"]] ]; p=Which[cond=="S",p1, cond=="C",p2, True,p3]; v.a.