Can I do something like this in a Text Object ?
if {Table.Field} = 'A' then
'Active'
Else If {Table.Field} = 'X' Then
'Dead'
Else
'Unknown'
Conditional Expression
Re: Conditional Expression
Hello,
Please try to use the following text expression:
Thank you.
Please try to use the following text expression:
Code: Select all
{IIF(Table.Field == "A", "Active", IIF(Table.Field == "X", "Dead", "Unknown"))}
Re: Conditional Expression
Yup thats working...
Just another twist...can I code like this ? Don't really like the long long code.
{IIF(Table.Field == "A", "Active", "")}
{IIF(Table.Field == "X", "Dead", "")}
Just another twist...can I code like this ? Don't really like the long long code.
{IIF(Table.Field == "A", "Active", "")}
{IIF(Table.Field == "X", "Dead", "")}
Re: Conditional Expression
Hello.
You will get empty fist line if Field is not A.
It's better to use Switch function.
Thank you.
You will get empty fist line if Field is not A.
It's better to use Switch function.
Thank you.