Ok, first off I've never had any asp/vbscript training, just go on what I picked up by hand, so if this is standard, it's just one I never encountered before.
Will having a comment in the middle of an IF statement (before the THEN) cause an error? This was the original code.
I didn't need one layer of testing it did, so I commented the line out as follows
But when the code was executed, it threw a syntax error. Is there something else I'm missing, or is it that you just can't have a comment in the middle of the IF statement like that?
Will having a comment in the middle of an IF statement (before the THEN) cause an error? This was the original code.
Code:
If (args.Step = 0 Or args.Step = 1) And _
(args.TemplateID = 501 Or args.TemplateID = 502) And _
argsToStep > args.Step Then
I didn't need one layer of testing it did, so I commented the line out as follows
Code:
If (args.Step = 0 Or args.Step = 1) And _
'Template Check not needed (args.TemplateID = 501 Or args.TemplateID = 502) And _
argsToStep > args.Step Then
But when the code was executed, it threw a syntax error. Is there something else I'm missing, or is it that you just can't have a comment in the middle of the IF statement like that?