Page 1 of 1

Columns... a conditional element

Posted: 02 Apr 2006 12:22
by MarkB
It's not possible to have a conditional element in the creation of new columns in individuals records, is it?

Let me explain. I want a column that shows the spouse's surname for females only, in other words their married name. I can create a column with:

Code: Select all

INDI.~SPOU[1]>NAME[1]:SURNAME
but this displays against males as well . What I really want is something like:

Code: Select all

if INDI.SEX=Female (INDI.~SPOU[1]>NAME[1]:SURNAME)
or whatever.

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.

Go on, tell me I've missed something simple :-)
Mark

ID:1495

Columns... a conditional element

Posted: 02 Apr 2006 14:55
by Jane
No nested functions are not supported yet.

Obviously you can now condition code on the diagrams, but that is done in multiple layers rather than as a nested instruction.

Columns... a conditional element

Posted: 02 Apr 2006 17:32
by MarkB
Thanks Jane, I thought as much.
Perhaps I should add this to the wish list?
Mark