DEFAULT (NO TRIGGER): state = FALSE
IF TRIGGERED alarm_central == ON and door == ON then state = TRUE
IF TRIGGERED alarm_central == OFF then state = FALSE
So if the default state if false and alarm_central is triggered (ON) but door==OFF then the state will be the default, namely false. However, you said you only want the state to be false if alarm_central is OFF. Therefore the pseudo-code can produce an undesired result.
Yes, you are right. I used bad english words. Anyway, I described the scenario twice, and added a “DEFAULT” keyword which should be clear enough. In any case, what Bartem suggested is the right solution
No, because I wrote that “that goes to ON state by triggering when switch_1 goes to ON” in the initial question. Which means that its default state is OFF. Then I added the word “default” to be more clear. And I also described a scenario.