Print conditional text

Stimulsoft Ultimate discussion
Post Reply
mirmidone
Posts: 15
Joined: Thu Mar 29, 2012 8:55 am

Print conditional text

Post by mirmidone »

I want to print text1 when "Mytable.price > 0" or print text2 when "MyTable.price = 0"
how to in Report ?
Many thanks for help
Enio Donci from italy
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print conditional text

Post by HighAley »

Hello.
mirmidone wrote:I want to print text1 when "Mytable.price > 0" or print text2 when "MyTable.price = 0"
how to in Report ?
You could do it with IIF() function.
Please, try to use next expression:

Code: Select all

{IIF(MyTable.price > 0,"text1",IIF(MyTable.price == 0,"text2",""))}
Thank you.
mirmidone
Posts: 15
Joined: Thu Mar 29, 2012 8:55 am

Re: Print conditional text

Post by mirmidone »

Ok work fine !!!
many thanks
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Print conditional text

Post by Andrew »

Hello,

Great!
Post Reply