Page 1 of 1

Print conditional text

Posted: Thu Sep 13, 2012 1:33 pm
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

Re: Print conditional text

Posted: Fri Sep 14, 2012 10:36 am
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.

Re: Print conditional text

Posted: Fri Sep 14, 2012 5:38 pm
by mirmidone
Ok work fine !!!
many thanks

Re: Print conditional text

Posted: Mon Sep 17, 2012 4:03 am
by Andrew
Hello,

Great!