Thread: [Solved] Multiple If statements,
View Single Post
 
Old 07-28-2013, 01:13 AM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 525
Jamal NUMAN is on a distinguished road
Question Multiple If statements,

Multiple If statements,

I wanted to code an If statement that meet the cases below but sounds not to work with me.

if A>0 and B>0 then X=A+B
If A>0 and B<0 then X=A-B
If A<0 and B>0 then X=2*A
If A<0 and B<0 then X=3B-9


It works for the first condition but couldn’t know how to proceed (attached)


Thank you


Best

Jamal
Attached Images
File Type: jpg Clip_15.jpg (121.3 KB, 43 views)
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank.
Reply With Quote