S
singeredel
I am trying to set up multiple conditions for filling in a REF Field but am
having trouble getting them all to work.
I have two bookmarks: ReferringPhysician and AttentionLine.
Depending on which bookmarks have information in them, I want to reference
that particular information in the REF fields for the bookmarks. There are
three choices:
1. If AttentionLine has information in the bookmark, I want to use that
variable in the REF field.
2. If AttentionLine is blank and ReferringPhysician is not blank, I want to
use the ReferringPhysician variable in the REF field.
3. If both AttentionLine and ReferringPhysician are blank, I want the REF
field to be blank so that it does not generate an Error! message.
This is the code I came up with for the IF statement, but obviously there is
something wrong with the nesting:
{ IF { REF AttentionLine } <>"" {REF AttentionLine } { IF { REF
AttentionLine } = "" AND { REF ReferringPhysician } <>"" { REF
ReferringPhysician } "" } }
Basically, this is how I want it to look:
Attention: (variable AttentionLine)
Referring Physician: (variable ReferringPhysician)
Dear {REF AttentionLine} or {REF ReferringPhysician} or blank
The "Dear REF" is what I am trying to address here.
Hope this is clear and someone can help.
Thank you!
having trouble getting them all to work.
I have two bookmarks: ReferringPhysician and AttentionLine.
Depending on which bookmarks have information in them, I want to reference
that particular information in the REF fields for the bookmarks. There are
three choices:
1. If AttentionLine has information in the bookmark, I want to use that
variable in the REF field.
2. If AttentionLine is blank and ReferringPhysician is not blank, I want to
use the ReferringPhysician variable in the REF field.
3. If both AttentionLine and ReferringPhysician are blank, I want the REF
field to be blank so that it does not generate an Error! message.
This is the code I came up with for the IF statement, but obviously there is
something wrong with the nesting:
{ IF { REF AttentionLine } <>"" {REF AttentionLine } { IF { REF
AttentionLine } = "" AND { REF ReferringPhysician } <>"" { REF
ReferringPhysician } "" } }
Basically, this is how I want it to look:
Attention: (variable AttentionLine)
Referring Physician: (variable ReferringPhysician)
Dear {REF AttentionLine} or {REF ReferringPhysician} or blank
The "Dear REF" is what I am trying to address here.
Hope this is clear and someone can help.
Thank you!