[Help] "} else {" structure

xBowBii

Member
Hello all,
I've got a question.
I think it is pretty simple but I don't know WHERE to put the "} else {".

Example:
If (blablabla) then {
if (!isDedicated) then {
DZE_requireplot = 1
};
};
} else {
DZE_requireplot = 0

Would this work?
(assuming that on top of my init.sqf I put:
blablabla = false;? so if true it will use "DZE_requireplot = 1" and if false "DZE_requireplot = 0")

Thanks in advance,
xBowBii
 
Code:
if {this is true} then {
    This code will run.
} else {
    That code was false and this runs.
};

Edited. You can have if's inside of if's as long as the brackets are correct.
Code:
Example:
If (blablabla) then {
    if (!isDedicated) then {
        DZE_requireplot = 1
    };
} else {
    DZE_requireplot = 0
};
 
Back
Top