A-level Computing 2009/AQA/Problem Solving, Programming, Data Representation and Practical Exercise/Fundamentals of Programming/Boolean operators





You might have already covered a lot of boolean logic in Unit 2. Boolean logic is essential for anyone wanting to program. For example you will end a game if it is  that the time is up. We might want to use more complex boolean logic, for example if the time is 16:00 or before 9:00, it is the holiday or it is the weekend, then you don't have to go to school:

Notice here how we didn't say,, we just said  , if something is true, then comparing it to true will also return true (phew!), so there really is no need check and see. Programming languages allow you to compare boolean values using a variety boolean operators that you probably know and love:

If you have been writing a lot of truth tables (you have Wittgenstein to blame), get VB.NET to do if for you!



