Imran Azam
Board Regular
- Joined
- Mar 15, 2011
- Messages
- 103
<code>How Can I write an if statement to cover all the below rules?</code>
<code>If A1 = “yes” and B2 = "fast" then “ok”</code>
<code>but if C2 = “yes” and D2 = "pen" then “bright”</code>
<code>but if E2 = “yes” and F2 = yes then “light”</code>
<code>if G2 = “yes” and E2 = No and H2= "below" then“slow”</code>
or do I need a case statement?
<code>If A1 = “yes” and B2 = "fast" then “ok”</code>
<code>but if C2 = “yes” and D2 = "pen" then “bright”</code>
<code>but if E2 = “yes” and F2 = yes then “light”</code>
<code>if G2 = “yes” and E2 = No and H2= "below" then“slow”</code>
or do I need a case statement?