5

i am working on rdlc report , i have a column in rdlc report , and i want if there is true value , return me "YES" and if there is false return "NO" i have tried the following code but it not working

=iif(Field!Application.value)="True","Yes","No"))

thanks in advance.

Prasad Telkikar
  • 15,207
  • 5
  • 21
  • 44
user3340023
  • 51
  • 1
  • 1
  • 2

2 Answers2

6

I thought it was like this

=IIf(Field!Application.Value = true,"yes","no")

1) 'V' is supposed to be capital 2) parenthesis should be at the end.

sylar
  • 366
  • 2
  • 9
4

You can use the IIf command:

=IIf(<Expression as Boolean>, <TruePart as Object>, <FalsePart as Object>) as Object

Like this:

=IIf(Fields!Application.Value = true, "Yes", "No")

This works to me, bye!