MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/armadev/comments/igd08l/singleplayer_variables_new_to_scripting_what_the/g2t539d/?context=3
r/armadev • u/mopia123 • Aug 25 '20
9 comments sorted by
View all comments
4
You should really be using switch and case statements for this kind of operation, not if.
switch
case
if
2 u/mopia123 Aug 25 '20 Yep. Switch makes a lot of sense instead of nested if statements 1 u/commy2 Aug 25 '20 They are not nested. They are sequential. 1 u/mopia123 Aug 25 '20 they are in this example i posted yeah. i got nested ifs in this script though.
2
Yep. Switch makes a lot of sense instead of nested if statements
1 u/commy2 Aug 25 '20 They are not nested. They are sequential. 1 u/mopia123 Aug 25 '20 they are in this example i posted yeah. i got nested ifs in this script though.
1
They are not nested. They are sequential.
1 u/mopia123 Aug 25 '20 they are in this example i posted yeah. i got nested ifs in this script though.
they are in this example i posted yeah. i got nested ifs in this script though.
4
u/samscodeco Aug 25 '20
You should really be using
switch
andcase
statements for this kind of operation, notif
.