vendredi 16 décembre 2016

Defining an if condition for the following scenario in VBScript

Consider 5 checkboxes A,B,C,D,E in a screen and a button.

Each checkbox has two properties - Enabled and Checked

The checkboxes can either be enabled or disabled

I need an If condition which will do the following,

  1. If say only 3 checkboxes are enabled and all three are checked by an user, an uninstallation will happen(on click of the button)

  2. If say only 3 checkboxes are enabled and only one is checked by an user, the uninstallation should not happen

  3. If say only 1 checkbox is enabled but it's not checked then uninstallation should not happen but if that 1 enabled checkbox is checked then uninstallation should happen.

  4. If none of the checkboxes are enabled, then uninstallation should happen.

Note: Uninstallation will happen in the onClick of the button.

How do I devise an If Else condition for this scenario? This has to be done in VBScript? Thanks for the help.

Aucun commentaire:

Enregistrer un commentaire