Forum Discussion
CAE421
Apr 30, 2026Copper Contributor
Conditional field code
Hi, I'm trying to create some conditional code as seen in the screenshot below: But when I update the field it just shows a field code saying STYLEREF I need it to insert the paragraph numb...
- Apr 30, 2026
You must not type the curly braces! You must generate them using Ctrl+F9 (in my French version). Also, there is a non-breaking space in the error messages (in my version).
CAE421
Apr 30, 2026Copper Contributor
Thanks for the reply. I removed the quotation marks as suggested but I get the following error:
Error! Unknown switch argument.
My code now looks like this:
Could you provide further advice?
gmaxey
Apr 30, 2026Occasional Reader
{ If { STYLEREF "Topic name" \n } = 0 ""{ STYLEREF "Topic name" \n } }