Arduino "CASE OF" Logic

Hello, I'm new on the arduino. I already program on Siemens PLC with the programming language SCL. In SCL there is the "Case of" function, is there such a thing also with the Arduino? here is a small SCL example:

//Siemens CASE OF Function

Case X_Flag of
0:
X_Flag := 0;

//with X_Flag the current step is stored

10:
IF Button1 THEN
X_FLAG := 20
END_IF

//with Button1 the current step is set to step 20

20:
IF Button2 THEN
X_FLAG := 10
END_IF

//with Button2 the step is set to step 10, the programm goes to step 10

thanks for your replies

It looks like switch/case is what you are looking for

Arduino IDE is based on C/C++. In general you can use any of the 100s of 1000s of C/C++ references on line.