Class Toggle Public Bool Public Property Get value() value = Bool End Property Public Property Let value(v) Bool = v End Property Public Sub activate() If Bool Then Bool = False Else Bool = True End If End Sub End Class Class NthToggle Public Bool Private Counter Public CountMax Public Property Get value() value = Bool End Property Public Property Let value(v) Bool = v End Property Public Sub activate() Counter = Counter + 1 If Counter >= CountMax Then If Bool Then Bool = False Else Bool = True End If Counter = 0 End If End Sub End Class NUM = WScript.Arguments(0) If NUM < 1 Then NUM = 1 Set oToggle = New Toggle oToggle.Bool = 1 For A = 1 To 5 oToggle.Activate If oToggle.Value Then WScript.Echo "true" Else WScript.Echo "false" End If Next For A = 1 To NUM Set oToggle = New Toggle oToggle.Bool = 1 Next WScript.Echo Set onToggle = New NthToggle onToggle.Bool = 1 onToggle.CountMax = 3 For A = 1 To 8 onToggle.Activate If onToggle.Value Then WScript.Echo "true" Else WScript.Echo "false" End If Next For A = 1 To NUM Set onToggle = New NthToggle onToggle.Bool = 1 onToggle.CountMax = 3 Next