Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
dmxmikey
Creator
Creator

if statement for 2 conditions.

I have this script

if([con-type]='2',[sell-price]-[discount],"sell-price"-"discount") as [sell-price-new]

and would like to add another condition , if operator='10' and [con-type]='2', then calculate as bove

1 Solution

Accepted Solutions
sunny_talwar

May be this

If([con-type] = 2 and operator = 10, [sell-price]-[discount], "sell-price"-"discount") as [sell-price-new]

View solution in original post

1 Reply
sunny_talwar

May be this

If([con-type] = 2 and operator = 10, [sell-price]-[discount], "sell-price"-"discount") as [sell-price-new]