I am wanting to include the first (or preferred) occupation of an individual on a diagram using my custom text scheme. However, in instances where an individual's first occupation is that of "Scholar" (ie, because of censuses), I want the text scheme to show either the next occupation that is not "Scholar" or my fact-flagged preferred occupation. Or perhaps a blank "No Occupation" in the case of there being no subsequent occupation facts.
I tried to implement the following expression in my text scheme, but it doesn't seem to work...
Code: Select all
=CombineText("(",ItemIf(%INDI.OCCU[1]% = "Scholar",ForceText("(No Occupation)"),%INDI.OCCU[preferred]%),")","")Sarah