This also allows all event handlers to be put together in one script tag, so that they are easier to find and reuse. By now, you may have guessed what the final method of writing VBScript in HTML is. It is writing code directly within a Script tag. Any statements in a Script tag but not in a subroutine or function are run when the browser reaches that point in the page. This allows you to add content to the middle of a page easily.
Boolean values are either true or false.
Other than converting number to boolean values, you can also get boolean values by using comparison operators or logical operators. There are four types of conditional statements in VBScript, three of which use boolean conditions. In the syntax definitions, statements can be any type of VBScript statement. The first conditional statement is best suited for situations where you only want to perform one action if the condition is true, and possibly one if it is false. The second conditional statement is best suited for situations where you want to perform one or more actions if the condition is true, and possibly one or more actions if it is not.