Re: "If" syntax question
- To: mathgroup at smc.vnet.net
- Subject: [mg105156] Re: "If" syntax question
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Mon, 23 Nov 2009 06:49:19 -0500 (EST)
- References: <6029eb910911210735s5be59d99wf16925fd4cdc7302@mail.gmail.com>
You should try SetDelayed (:=) instead of Set (=) in the function definition. If you don't do that the If statement is evaluated at the time of definition and not at the time of calling. Cheers -- Sjoerd On Nov 22, 1:11 pm, Michael Greene <mgre... at csumb.edu> wrote: > Oops. I corrected the expression to use == instead of = in the cond= itional. > Still don't get what I'm trying for which is a single 3d point coordinate=