Problems with IIF

My first raport in FAST REPORT 5, first error with

in Memo i write [IIF(1=0, '1', '2')] work fine in PascalLanguage Script , but if i change in C++ Script ERROR!

')' expected? Where is the problems? Differen syntax? Please give me an example to use IIF corect in C++ SCript language. Thanks!

Comments

  • LurkingKiwiLurkingKiwi Wellington, New Zealand
    edited 9:43PM
    blumache wrote: »
    in Memo i write [IIF(1=0, '1', '2')] work fine in PascalLanguage Script , but if i change in C++ Script ERROR!
    I expect the C version should be
    [IIF(1==0, "1", "2")]
    although it may work with single quotes.
    Why do you need to use C Script?

Leave a Comment