C switch/case statement

Forums ProRealTime English forum ProOrder support C switch/case statement

Viewing 3 posts - 1 through 3 (of 3 total)
  • #153158

    Hi, is there any way of writing C/C# switch/case type statements in ProRealTime or is the only way to use multiple IF-statements?

    switch (expression)
    ​{
    case constant1:
    // statements
    break;

    case constant2:
    // statements
    break;
    .
    .
    .
    default:
    // default statements
    }

     

    #153159

    No, there’s no SWITCH statement.

    You can read all available instructions, keywords and constants at https://www.prorealtime.com/en/help-manual/quick-tour.

     

     

    1 user thanked author for this post.
    #153193

    Take a look at the documentation too, especially inside of the “instructions” section.
    In the column that you’ll find on the right there are all the possible instructions that you can use inside of PRT.

Viewing 3 posts - 1 through 3 (of 3 total)
Similar topics:

Create your free account now and post your request to benefit from the help of the community
Register or Login