That's up to you. switch and if/else can be nested within each other if needed - with care.
Why don't you try it and find out? There are certainly limitations when nesting conditionals...
Type: Posts; User: grumpy
That's up to you. switch and if/else can be nested within each other if needed - with care.
Why don't you try it and find out? There are certainly limitations when nesting conditionals...
Sure. The purpose of an if/else construct is to allow things to be done based on whether particular conditions apply. There are alternatives as well.