In the script area of the W3-School example (link above) you will find a variable typewritersInStock with the value true. In the html area of the same script there will be decided, what is supposed to happen in which case. In the true-case there are typewriters on stock, and in the else-case (v-else) they are not.