hi,
I'm working with a family tree, boys display blue, girls display red. I have an array element:
$person[5] = array(
"name" => "Mary",
"gender" => "F",
"birthyear" => "1940"
);
Now I'm trying to roll through the family tree and set the font color based on the gender of each person. I'm counting thru the tree with a incrementing variable, $count and I'm trying to test the gender of each person in an IF statement:
IF ( $person[$count]["gender"] == "F" ) {
..... then go set the font red...
the reference $person[$count]["gender"] has valid content, but not in the IF expression. Can someone help me out with syntax??
😕
thanks! mojo