IIF function
I'm currently using FastScript version witch comes with FastReport 4 Standard Edition v4.10.8. RAD Studio 2010.
Script sample (I'm using C++Script, but I have tested also PascalScript - same issue):
But if executing inside the TfsScript object, message shows "0".
At this point it's not a big deal, cause IIF() function can simply be replaced by if..then..else statement.
But real problem starts with expression evaluation: TfsScript.Evaluate(), where IIF is the only way to define conditions.
Is it a bug, or I'm doing something wrong?
Script sample (I'm using C++Script, but I have tested also PascalScript - same issue):
If this script is put inside a report - all OK, message shows "T".{
String a = iif(true, "T", "F");
ShowMessage(a);
}
But if executing inside the TfsScript object, message shows "0".
At this point it's not a big deal, cause IIF() function can simply be replaced by if..then..else statement.
But real problem starts with expression evaluation: TfsScript.Evaluate(), where IIF is the only way to define conditions.
Is it a bug, or I'm doing something wrong?
Comments
As a temporary workaround I've declared function with name IIF2, which does the same thing that IIF should. But it confuses end users.