Go Down

Topic: VirtualWire (Read 3 times) previous topic - next topic

AWOL

Quote
By the way, I do not understand the bolded part.

If you sort out the tags, I'll be able to see what you mean by the bolded part
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Vincent19


Quote
By the way, I do not understand the bolded part.

If you sort out the tags, I'll be able to see what you mean by the bolded part

Modified !

AWOL

#57
Jan 26, 2013, 11:43 am Last Edit: Jan 26, 2013, 01:02 pm by AWOL Reason: 1
The constant "true" will always be true, so if you say
Code: [Select]
if(true), whatever follows the experession will always be executed.
If you say
Code: [Select]
if (false), then whatever follows will never be executed.
That's fundamental.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Vincent19

Oh, so it will be a different story if I assigned a variable to be 'true' or ;false' ?

Correct ?

PaulS

Quote
Oh, so it will be a different story if I assigned a variable to be 'true' or ;false' ?

Correct ?

The action, based on whether the variable contains true or false, will be the same. Which action is performed will be different IF you assign the value correctly and IF you write the test correctly.

Go Up