On Wed, Jul 31, 2013 at 5:23 AM, Rupert Swarbrick <rswarbrick at gmail.com>wrote:
> Stavros Macrakis <macrakis at alum.mit.edu> writes:
> > I find conditionals-as-expressions very valuable, but I don't think
> > conflating them with conditions-as-statements is a great idea.
> >
> > If you set prederror:true, you will get an error if 'if' conditions can't
> > be evaluated.
>
> Another trick is to do things like
>
> if is (pred (...)) = true then ...
>
> Since IS will always give you true, false or unknown, you can guarantee
> that you won't get the conditional back again. (I think: or at least
> I've used this quite a bit and haven't been bitten yet!)
Yes, you can also write if (a>0)=true then ...
> Rupert
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>