Page MenuHomeFeedback Tracker

Code After Else If compiled, but not executed
Assigned, UrgentPublic

Description

For some reason DayZ does not execute Statements after the Closing Bracket of Else if Statements if they are in the same line (check the example below)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Load the Following MissionServer Class:

modded class MissionServer {

	void MissionServer() {
		Print("Pre Test 1");
		if (1 == 1) {
			
		} else if (2 == 2) {
		
		}Print("Not Printed"); // <---------- ERROR HERE
		Print("Is Printed");
		Print("End Test 1");
		Print("Start Test 2");
		if (1 == 1) {
			
		} else {
			if (2 == 2) {
			}
		}Print("Is Printed Now");
		Print("Is Printed");
		Print("End Test 2");
	}

}

Event Timeline

LBmaster created this task.Dec 9 2021, 12:38 AM
LBmaster edited Steps To Reproduce. (Show Details)
Geez changed the task status from New to Assigned.Dec 9 2021, 10:34 AM