C# – Set report field value in crystal reports

c#-2.0crystal-reports

I have a report field where its value is "2". I need to display in report as "True" if report field value is 2.How do i do this in Formula editor crystal reports ? Please help me.

EDIT :Here is my code in formual Editor:
if( {emp.company_id}=2) Then
CStr ({emp.company_id}) ="ABC pvt ltd"

As emp.company_id is integer value i have tried converting it to string but still it displays as 2 in report.

Best Solution

All you need in the formula is

{Tablename.Fieldname}=2
Related Question