- #71
evinda
Gold Member
MHB
- 3,836
- 0
Klaas van Aarsen said:How about:
Code:var showApple = false if (Apple is checked) { if (Large Screen is checked OR (FROM <= 6.1 AND TO >= 6.1)) { if (iOS is checked){ showApple = true } } } if (showApple) { Apple is shown } else{ Apple is not shown }
So we define a local variable at the beginning of the function that has the value "false" and it gets the value "true" if the specific product should be shown. Is this the right idea of the way you described?