Difference between revisions of "VBScript block"

From StealthBot Wiki Backup
Jump to: navigation, search
(See also)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:20, 1 December 2017

VBScript normally executes from the first line to the last, doing what each line says to do. The "control flow" is a technical term for what code will get executed next. To change the order of lines that are executed, use "control flow blocks", such as those outlined in this tutorial.

Functions

Template:Main All the code so far would be executed immediately after the script control loads it. Subroutines and functions allow you to execute the code inside them at later times, such as when the bot fires an event.

Conditional blocks

Template:Main The If block and its relative the Select block are conditional blocks commonly used in VBScript.

Loop blocks

Template:Main The For, Do, and While loops allow you to execute code multiple times.

Class

Template:Main The class allows you to create custom objects to group a set of functions and variables together in a vaguely object oriented model. It even allows you to make properties as discussed in VBScript object.

See also