|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: [FTC]: IR Code With Two Sensors
Think about using logical "and" and "or" in your "if" statements. I could do it for you and post the solution, but figuring it out yourself will help you learn. Here is an example...
if(Condition1 && Condition2) // "&&" = "and" { DoSomething(); } else if(Condition3 || Condition4) // "||" = "or" { DoSomethingElse(); } else { DoDefaultAction(); } ----- FTC Team #6389 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|