By looking at the code, this looks like it should work. To help you debug, you might want put in a few popup dialogs that show you the values that you are working with. Another consideration would be making sure the case sensitivity is not throwing you off. Also, you are not using the sourceBusinessCard variable anywhere, try this:
var sourceBusinessCard = XDocument.DOM.selectSingleNode("//my:myFields/my:business_card_order").text;
XDocument.UI.Alert( sourceBusinessCard );
if (sourceBusinessCard.ToUpper() == "YES")
{
//open business card order form template
var xBusCard = Application.XDocuments.NewFromSolution("\\\\everest\\public\\forms\\Infopath Business Card Order Form.xsn");
else
{
email the new hire form bunch of codes
}
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge