Hey im using flex, actionscript 3
-Taking in an XML file , E4X
-Need to query it

if(inputB.text==(""))
{
searchResult = dataDetails.person.(forename==inputA.text);
Answer.htmlText = searchResult;
}
else if(inputA.text==(""))
{
searchResult = dataDetails.person.(surname==inputB.text);
Answer.htmlText = searchResult;
}
else
{
searchResult = dataDetails.person.((forename==inputA.text)&&(surname==inputB.text));
Answer.htmlText = searchResult;
}
- If/else statement did fine to get all combinations of First/Last name where result is returned when either is queryed OR when both match
Problem now is that each person also has a date associated with them(later a city too),
im not sure how to integrate this in, should i be using a switch ? if so what
would be the input for the switch statement ? bit confused.