- Joined
- Sep 30, 2012
- Messages
- 205
For now i'm doing GUI, after some more testing and changes i'm going to translate and optimize it into vjass..
however i already wanted to optimize the GUI code a bit now..
So i got some questions:
Is a if-then-else tree like this good?
So basically it will checks for the right condition till it is found?
kinda trying to get to my final questions faster, by adding some questions down at the root of the three. Like if integer is bigger than, or smaller.
So the question is can more code, be more efficient?
Like is he counting up? - asking for: if its 'h001', then 'h002' and then 'h003' in that order anyway? So it would be important that i ask for those units also in that order?
otherwise if i ask for 'h003' at start - would he have already checked 'h001' and 'h002' anyway?
however i already wanted to optimize the GUI code a bit now..
So i got some questions:
Is a if-then-else tree like this good?
So basically it will checks for the right condition till it is found?
-
Untitled Trigger 001
- Events
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 1
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 2
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 3
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 4
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 5
- Then - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
kinda trying to get to my final questions faster, by adding some questions down at the root of the three. Like if integer is bigger than, or smaller.
So the question is can more code, be more efficient?
-
Untitled Trigger 001
- Events
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Less than or equal to 2
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than 1
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 2
- Then - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Greater than or equal to 3
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 3
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 4
- Then - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer Equal to 5
- Then - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Like is he counting up? - asking for: if its 'h001', then 'h002' and then 'h003' in that order anyway? So it would be important that i ask for those units also in that order?
otherwise if i ask for 'h003' at start - would he have already checked 'h001' and 'h002' anyway?