Home > Community > Forums > RF Design > Executing multiple statements inside if-else command in OCEAN

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Executing multiple statements inside if-else command in OCEAN 

Last post Wed, Jan 2 2013 6:00 AM by Andrew Beckett. 3 replies.
Started by RFQuery 19 Oct 2012 12:09 AM. Topic has 3 replies and 1285 views
Page 1 of 1 (4 items)
Sort Posts:
  • Fri, Oct 19 2012 12:09 AM

    • RFQuery
    • Top 75 Contributor
    • Joined on Wed, Jul 20 2011
    • Posts 88
    • Points 1,250
    Executing multiple statements inside if-else command in OCEAN Reply

     Dear All,

    I need to implement something like below:-

    Is it possible to do so in OCEAN ?

     

    if( statement is true)

       Execute---statement-1

       Execute---statement-2

       Execute---statement-3

    else

       Execute---statement-4

       Execute---statement-5

       Execute---statement-6

    end

     

    Kind regards

     

       

       

     

    • Post Points: 20
  • Fri, Oct 19 2012 1:41 AM

    Re: Executing multiple statements inside if-else command in OCEAN Reply
    Of course - OCEAN is SKILL, and SKILL has an if function (covered in the documentation):

    if(expression then
    ; true bits
    else
    ; false bits
    )

    Note that the open parenthesis must be after the if with no space, and there is a close parenthesis at the end of the if() function. See the SKILL Language User Guide for more details.

    Regards,

    Andrew
     
    • Post Points: 20
  • Fri, Oct 19 2012 10:32 PM

    • RFQuery
    • Top 75 Contributor
    • Joined on Wed, Jul 20 2011
    • Posts 88
    • Points 1,250
    Re: Executing multiple statements inside if-else command in OCEAN Reply

    Dear Andrew,

    Thanks a lot for your reply..

    I just want to know is it possible to do very simple Array or Matrix operation like ( assigning values to matrix, adding two Matrixes) in OCEAN. If so , can you give some examples or point to some documents which elucidate the operations.

    Kind Regards,

    • Post Points: 20
  • Wed, Jan 2 2013 6:00 AM

    Re: Executing multiple statements inside if-else command in OCEAN Reply

    Nothing built-in (that's public), but it would be easy enough to write something.

    Andrew.

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by RFQuery at 19 Oct 2012 12:09 AM. Topic has 3 replies.