I created a simple formula using ‘if’ ‘else’ conditions and would like to know how I can conditionally format the output strings. Here’s the sample:
if {?TestParam}=“Condition1”
then
“Dear John,” + chr(10) + chr(10)
“blah blah” + chr(10)
“blah blah blah”
else if {?TestParam}=“Condition2”
then
“Dear Jane,” + chr(10)
“Thank you for your order.” // How do I make this Sentence BOLD?
“blah blah blah”
else if {?TestParam}=“Condition3”
then
“blah blah blah” // How do I CENTER this sentence only?
I tried using CRBOLD() , but it gives error. And also, there’s a crCenteredHorizontally function I believe I tried using and that didn’t produce any result.
Is it even possible to conditionally format parts of the strings within a formal?
Thanks so much for your help. I’ll create my second report using your method. I have like 12 conditions, but it could be done the same way I. I really really appreciate this.