You need to sign in to do that
Don't have an account?
Pyramid
Can an Apex statement use more than one line?
I have a few long lines of code that I need to wrap onto 2 lines rather than just using one line. Is there a statement continuation character or something that will let me do that?
Thanks,
Doug
Whitespace (including newlines) are generally ignored in Apex. The following statements are all identical:
Rich
All Answers
most types can. for instance, string concatenation
string blah = 'testing' +
'some more testing';
AFAIK, there's no character to clue that in, it either works or doesn't.
Whitespace (including newlines) are generally ignored in Apex. The following statements are all identical:
Rich