简体   繁体   中英

How to Create a Simple If Condition Syntax in Crystal Report Formula that Returns a String Value

Can Anyone help learn about Crystal Reports Formula Syntax i have currently made a code but it keeps saying Error 'there was an error in this formula'.

i have this already:

If {Dataset.Gender} = "MALE" Then  
// Return String X  
End If

i have tried researching for the right one syntax and seems like i already have written the right one but still not working why is it?

can anyone fix my syntax on how to return an X value if it's a male in crystal reports formula.

Remove "End if" From the formula

If {Dataset.Gender} = "MALE" Then
// Return String X

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM