Skip to Content
author's profile photo Former Member
Former Member

Does ABSL (ByD Script) support Short Circuit Evaluation?

Hi,

short question:

Does ABSL (ByD Script) support Short Circuit Evaluation?

For example the following code snippet:

-


var Call_query;

Call_query = !this.LastChangeIdentity.IsSet() || (this.LastChangeIdentity.UUID.Content != CurrentIdentityUUID.Content);

-


Will "this.LastChangeIdentity.UUID.Content" be evaluated and cause me into trouble if not initialized?

PS: Is there a language specification available?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2011 at 03:51 PM

    I found something, which looks like a specification.

    See within the Business Center Wiki -> ByD Studio -> Best Practices for Implementation,

    section 'Best Practice for Business Object definition and scripting',

    download ' Syntax for Actions and Events.pdf'.

    Within this PDF, see section 'Logical Expressions'.

    Cite: The logical u201Candu201D (&&) and u201Coru201C (||) operators always evaluate the overall expression to a boolean value (u201Ctrueu201D or u201Cfalseu201D)

    This sounds to me, that Short Circuit Evaluation is not supported.

    BUT: There is no version number nor time stamp nor something else, which points out the status of this document.

    Can someone (from SAP) verify this?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 09, 2011 at 12:10 PM

    There's a big need, that Short Circuit Evaluation should be supported in the future.

    Because, may other languages do and it's

    really an improvement for developers.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.