joschaap 1 Posted June 27, 2013 im trying to debug some of my misison code, however it seems like the problem lies in my usage of a nested case switch. is it possible arma's SQF does not allow nested case switches? example: switch (foo) do { case "bar": { switch (that) do { case "this": { do something ... Share this post Link to post Share on other sites
LoonyWarrior 10 Posted June 27, 2013 u can make separate function for second switch.... ;) Share this post Link to post Share on other sites
joschaap 1 Posted June 27, 2013 it was indeed not possible to nest case switches :) reverted to if/else inside the cases :) thanks! Share this post Link to post Share on other sites
killzone_kid 1332 Posted June 28, 2013 it was indeed not possible to nest case switches :) reverted to if/else inside the cases :)thanks! switch 1 do { case 1: { switch 2 do { case 1: { hint "1"; }; case 2:{ hint "2"; }; default { hint "3"; }; }; }; case 2: { hint "4"; }; default { hint "5"; }; }; It works for me, the result is 2 Share this post Link to post Share on other sites