MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: "If" syntax question

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> wrote:
> Oops. I corrected the expression to use == instead of = in the cond=
> Still don't get what I'm trying for which is a single 3d point coordinate=

  • Prev by Date: Re: bug in Mathematica 7?
  • Next by Date: how to read in a number in hex and then get it in binary?
  • Previous by thread: Re: "If" syntax question
  • Next by thread: Re: "If" syntax question