gabriels
2016-06-13 07:04:12
I believe that MT is counting comment lines as actual lines of code when it encounters "skip next rule" or "skip next 2 rules".
So for example:
This works:
if n8>4 then skip next 2 rules
ir=1
exit rules, execute Outgoing Action
more code with conditionals
etc
This fails:
if n8>4 then skip next 2 rules
//ir IS USED TO DIRECT FADE TO GREY WHEN
//LAST CLIP WAS IN ONE OF FIRST FOUR TRACKS
ir=1
exit rules, execute Outgoing Action
more code with conditionals
etc
Instead of skipping the two lines:
******************************
ir=1
exit rules, execute Outgoing Action
******************************
and then proceeding with the next conditionals, MT seems to be counting the two comments as valid code, and then executes
ir=1
exit rules, execute Outgoing Action
......with unwanted results.
I'm surprised because I seem to remember such comments not causing this error in my code up until today. But, sure enough, I do get this type of error.
Of course I can get rid of the problem by moving the comments out of the way, but it's nice to have them right there.
Gabriel
So for example:
This works:
if n8>4 then skip next 2 rules
ir=1
exit rules, execute Outgoing Action
more code with conditionals
etc
This fails:
if n8>4 then skip next 2 rules
//ir IS USED TO DIRECT FADE TO GREY WHEN
//LAST CLIP WAS IN ONE OF FIRST FOUR TRACKS
ir=1
exit rules, execute Outgoing Action
more code with conditionals
etc
Instead of skipping the two lines:
******************************
ir=1
exit rules, execute Outgoing Action
******************************
and then proceeding with the next conditionals, MT seems to be counting the two comments as valid code, and then executes
ir=1
exit rules, execute Outgoing Action
......with unwanted results.
I'm surprised because I seem to remember such comments not causing this error in my code up until today. But, sure enough, I do get this type of error.
Of course I can get rid of the problem by moving the comments out of the way, but it's nice to have them right there.
Gabriel