Line Continuation Character?
Posted: Sat May 15, 2004 9:52 pm
I wrote my first MQ2 macro about a week ago (Rogue Helper, maybe you've seen it). Anyway, while I wrote the first version of it, I had some rather lengthy boolean expressions in some of my /if statements. When writing code in other languages, it's common code "form" to break long boolean conditions at a conjunctive operator (and and ors and whatnot) and put them on multiple lines for readability.
I tried that and MQ2 considered me foolish for doing so :)
I looked throughout the documentation and on the boards for a COBOL-style (or was it Fortran? Hell I don't remember!) continuation character or characters that could tell the parser "Hey, I got more shit for THIS line of code coming on the next line!"
Does MQ2 have one that I don't know about? If not, can my anal-rententive code-styling ass request one? Pretty please?
Perhaps two +'s bordered by spaces would indicate continue parsing on next line?
i.e.
Something like that?
Thanks!
I tried that and MQ2 considered me foolish for doing so :)
I looked throughout the documentation and on the boards for a COBOL-style (or was it Fortran? Hell I don't remember!) continuation character or characters that could tell the parser "Hey, I got more shit for THIS line of code coming on the next line!"
Does MQ2 have one that I don't know about? If not, can my anal-rententive code-styling ass request one? Pretty please?
Perhaps two +'s bordered by spaces would indicate continue parsing on next line?
i.e.
Code: Select all
/if (${SomeBoolVariable} && !${Me.Casting.ID} && ${Me.Standing} ++
&& ${SomeOtherBoolean} && (${IntValueOfSorts}>=0)) {
|- DO something
|- And do something else
}
Thanks!