Everyone who has worked with logic knows that it simply starts with TRUE and FALSE. When we program, each part of the program generates a result (TRUE) or fails (FALSE). A sequence of statements or functions may work together and produce multiple results or failures at the same time. It is for this reason that the standard logic table can direct your efforts in troubleshooting at later stages. For your reference this table is included below:
| Function | Values | TRUE | FALSE |
| NOT | FALSE | TRUE | |
| AND | TRUE | TRUE | FALSE |
| FALSE | FALSE | FALSE | |
| OR | TRUE | TRUE | TRUE |
| FALSE | TRUE | FALSE | |
| XOR (Only one is TRUE) |
TRUE | FALSE | TRUE |
| FALSE | TRUE | FALSE | |
| NOR (Neither is TRUE) |
TRUE | FALSE | FALSE |
| FALSE | FALSE | TRUE |
No comments:
Post a Comment