ZS1BFE
Member level 1
- Joined
- Nov 17, 2007
- Messages
- 40
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Cape Town South Africa
- Activity points
- 1,612
Hi,
I want to use an OR function, but cannot find the right EXAMPLE for this.
A.B,C,D,& E are all declared VAR.(int)
How do I do this?
if a = 1 || b = 1 || c = 1 then D= 50.
Possible:
if (a || b || c)
d = 50;
Also
if input b0 = 1 || input B1 = 1 , then E = 50.
Possible
if (input_high(pin_B0) || input_high(pin_B1)
E = 50;
Thx
Lourens
CapeTown,SA
I want to use an OR function, but cannot find the right EXAMPLE for this.
A.B,C,D,& E are all declared VAR.(int)
How do I do this?
if a = 1 || b = 1 || c = 1 then D= 50.
Possible:
if (a || b || c)
d = 50;
Also
if input b0 = 1 || input B1 = 1 , then E = 50.
Possible
if (input_high(pin_B0) || input_high(pin_B1)
E = 50;
Thx
Lourens
CapeTown,SA