Re: [NEWBIE] question

From: Del (caminturn@earthlink.net)
Date: 04/03/01


Peter Ajamian wrote:
>
> Close, but not quite.  The difference is that the former is an operator
> which tests the first argument and returns either the second or the third
> depending on the result.  The latter is a statement which tests the
> expression and executes one of two code blocks depending on weather or
> not it's true.  If that was too complex for you then I'll try to simplify
> it with a couple of examples...
>

Yes it is an operator, but why is it different than an if statment?
Does it not do the same thing? i.e. Both check the value, and if the value
is true, do the first, if not do the second.


Dak gave an example exactly the same as mine, "if (a) then (b) else (c)"

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST