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.
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.
*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
sry