In pseudo-code, what I would like to achieve is:
Code: Select all
...
Show WelcomeDlg
if (condition1) {
Show CustomDialog1
}
if (condition2) {
Show CustomDialog2
}
if (condition3) {
Show CustomDialog3
}
if (condition4) {
Show CustomDialog4
}
Show FolderDlg
...
However, when I add conditions to each of the dialogs in turn, the behaviour I get is equivalent to:
Code: Select all
...
Show WelcomeDlg
if (condition1) {
Show CustomDialog1
}
else if (condition2) {
Show CustomDialog2
}
else if (condition3) {
Show CustomDialog3
}
else if (condition4) {
Show CustomDialog4
}
Show FolderDlg
...
Is this expected behaviour? Is there a simple way to get the behaviour I'm after?