Block of Code

The If...Else...End If construct is what's known as a block of code. A block is a section of code that has a beginning an an end, and usually contains keywords or statement at the beginning and the end. In the case of If...Else...End If, the If statements marks the beginning of the block, and the End If marks the end of the block. The script engine requires these beginning and ending statements, and if you omit them, the engine will not allow your script to execute. You will encounter lots of different code blocks in VBScript. That said, to confuse matters, the term, "block of code" is often used informally to describe any group of lines of code.