To avoid this situation keep string literals on a single line or create

To avoid this situation keep string literals on a

This preview shows page 58 - 62 out of 334 pages.

To avoid this situation, keep string literals on a single line or create separate strings and then use the string concatenation operator to concatenate them. For example: var Gettysburg = "Fourscore and seven years ago, " + "our fathers brought forth on this continent a " + "new nation."; For more information, see “Concatenating Strings” on page 42 .
Image of page 58
Using Siebel eScript Guidelines for Using Siebel eScript Siebel eScript Language Reference Version 8.1, Rev. A 59 Use Comments to Document Your Code A comment is text in a script that you can use to document the script. It can describe the intent of the code flow, which simplifies modifications and debugging. Siebel eScript skips comments. Siebel eScript includes the following types of comments: End-of-line comment. Begins with two forward slashes (//). It ignores any text that occurs from after these slashes to the end of the current line. It begins interpreting the code that occurs on the next line. Statement block comment. Begins with a forward slash and an asterisk (/*). Ends with an asterisk and a forward slash (*/). Text between these markers is a comment even if the comment extends over multiple lines. You cannot include a statement block comment in a statement block comment. You can include an end-of-line comment in a statement block comment. The following code includes valid comments: // this is an end of line comment /* this is a statement block comment. This is one big comment block. // this comment is okay in the statement block. The interpreter ignores it. */ var FavoriteAnimal = "dog"; // except for poodles //This line is a comment but var TestStr = "This line is not a comment."; Make Sure the JavaScript Interpreter Can Run a Function If a function is unique to Siebel eScript, then you must make sure that the JavaScript interpreter that runs the script supports Siebel eScript functions. Avoid using a function that is unique to Siebel eScript in a script that might be used with a JavaScript interpreter that does not support the function.
Image of page 59
Siebel eScript Language Reference Version 8.1, Rev. A Using Siebel eScript Guidelines for Using Siebel eScript 60
Image of page 60
Siebel eScript Language Reference Version 8.1, Rev. A 61 4 Statements Reference This chapter describes reference information for statements you can use in Siebel eScript. It includes the following topics: Break Statement on page 61 Continue Statement on page 62 Do While Statement on page 63 For Statement on page 64 For In Statement on page 65 Goto Statement on page 66 If Statement on page 67 Switch Statement on page 69 Throw Statement on page 71 Try Statement on page 72 While Statement on page 74 With Statement on page 75 Break Statement The Break statement does the following: Stops the innermost loop of the following statements: For While Do Controls the flow in a Switch statement.
Image of page 61
Image of page 62

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes