how to use true and false ?
in some examples plz
Please go read this: http://www.cplusplus.com/doc/tutorial/ and don't stop for a while,... please.
Jhjh:
how to use true and false ?
in some examples plz
bool condition;
condition = readDigital(9);
if (condition == true) {
doSomething();
}
else {
doAnotherThing();
}
condition = true;
if (condition) {
doStuff();
}
if ( ! condition) {
doStuff()
}
how to use the true and false
for exemple
if
x = ? = true
else
its false
? is it like this
No.
Please stop just posting questions that could better and more easily answered by you looking at some C tutorials and playing with the examples provided.
I already tried I am serious its because i am triing to build a new project and I have to be sure you are the experts.
thank you for your understanding
and i did not find about true and false
You may want them check the difference between comparison and assignment operators.
Here's a useful link you seem to have overlooked.
yeah I want that if for exemple
this condition == true
this one = false
can i define it in this way
one = falsewill always be false
i am triing to build a new project
Without a basic understanding of C, you are not ready. And, clearly you don't have a basic understanding of C, or any programming language. Put the Arduino away. Buy a C programming book. By the time you get done with the first 50 pages, you'll understand a whole lot more, and be ready to think about considering the possibility that sometime in the future you might consider getting the Arduino out.
thank you sir for you help!!!
by the way i am learning it at school but i am triing to learn new things with some help
thank you
The Arduino IDE has a number of examples buit-in.
Playing around with these, changing how they behave will help you a great deal.
Cross-posts merged.
Again.
OP - if you don't stop this, you will be banned.
Clear?
what do you mean?
I mean that I have just merged two threads with identical titles that you posted.
This is called cross posting, it wastes time, and it's short cut to the sin bin.
This is the second time I've done this for your posts.
Is that clear enough?