Page 1 of 1

Making functions conditional

Posted: 02 Apr 2006 17:40
by MarkB
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

Making functions conditional

Posted: 04 Apr 2006 15:47
by Jane
Added as
nested conditional functions