After reading up more on using the GoTo labels, I realized that I could not use them in that way. I have tried rewriting the code with that in mind and came up with this:
Dim convFileName2 As String
convFileName2 = "[OutputPath2]"
Dim convFilePath2 As String
Dim convFileNameTemp2 As String
Dim sVarVal As String
Dim bSecondOutput As Boolean
‘Checks variable for cleaning
sVarVal = swModel.CustomInfo2("",“Cleaning Required”)
If sVarVal = 1 then
bSecondOutput = True
bSecondOutput = False
The code works when the value for "Cleaning Request" is 1 or 0, but it is still getting hung up when the variable "Cleaning Request" isn't present. I want bSecondOutput to be false if there is no variable present. I tried using a msgbox to debug, but it doesn't seem like this script allows for message boxes; I tried adding one to the default script and it failed.