next up previous contents index
Next: Comparisons Up: Physics 2101 - Scientific Previous: while () {}   Contents   Index


A conditional is a way to carry out a set of statements depending on whether of not some criteria has been satisfied. Before we begin a discussion of this, though, we first look at the problem of comparing two variables.