* Making functions conditional

Homeless Posts from the old forum system
Locked
User avatar
MarkB
Diamond
Posts: 59
Joined: 31 Mar 2006 17:52
Family Historian: V5

Making functions conditional

Post by MarkB » 02 Apr 2006 17:40

What I would like is to have some sort of conditonal element in the expression fields where data references are entered, such as in the creation of a new column in Individuals Records.

So, to create a column where the spouse's surname is shown for females only, something like:

Code: Select all

    if INDI.SEX=Female (INDI.~SPOU[1]>NAME[1]:SURNAME)
at the moment only the latter part in brackets can be entered thus showing the spouse surname for males and females.

I imagine that the engine for this sort of comparison is already in the program code, it just needs extending to other parts of the program.

Thanks
Mark

ID:1498

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Making functions conditional

Post by Jane » 04 Apr 2006 15:47

Added as
nested conditional functions

Locked