Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Logical AND (http://www.chiefdelphi.com/forums/showthread.php?t=17355)

powercat 03-02-2003 18:09

Logical AND
 
Greetings,
Searched this site, and looked for the PBasic Syntax Manual. I came up short.

What is the symbol for performing a Logical AND ?

if rc_sw1 = 1 AND rc_sw2 = 1 then

thanks.

Greg Ross 03-02-2003 18:39

Re: Logical AND
 
Quote:

Originally posted by powercat
What is the symbol for performing a Logical AND ?

if rc_sw1 = 1 AND rc_sw2 = 1 then

The AND operator is correct, but you will need to use parentheses:
if (rc_sw1 = 1) AND (rc_sw2 = 1) then

Adam Collet 03-02-2003 20:08

nm
 
sry


All times are GMT -5. The time now is 04:29.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi