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
}
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.
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.