A92: Re: C -- Boolean logic?


[Prev][Next][Index][Thread]

A92: Re: C -- Boolean logic?




To do "AND" in C, you need to use "&&".

Bryan

----- Original Message -----
From: <TurboSoft@aol.com>
To: <assembly-89@lists.ticalc.org>; <assembly-92@lists.ticalc.org>
Sent: Friday, September 17, 1999 7:44 PM
Subject: A89: C -- Boolean logic?


>
> is there a way to do boolean logic in C?
> so that instead of doing this:
>
> if(a = 5)
> {
>     if(b = 10)
>     {
>     do this code
>     }
> }
>
> l can do this:
>
> if(a = 5 AND b = 10)
> {
> do this code
> }
>
> However, it doesn't work.  Any way to do it?
> --TurboSoft
>
> Visit the TURBOSOFT HOMEPAGE:  The most current Basic programs created by
> Turbosoft for the 89, and the most 89 links.
> <A HREF="http://turbosoft.ticalc.org/">http://turbosoft.ticalc.org/</A>
>
>



References: