How to use IIF

edited 6:56PM in FastReport 3.0
I need to show a field into a report only if it has a value and I tried to use the IIF to solve the problem but without success.
I need to do something like that:
IIF(<field> is null, '', 'Contact person:' + <field>)

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:56PM
    sample
    [IIF(<Customers."Addr2"> ='',<Customers."City">,<Customers."Addr2">)]
    if you want the evaluation expression to check for null then the report engine option
    convert nulls must be set to false otherwise check for value.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.