Checking whether various form fields are filled in
You could solve this by constructing your Queryname dynamically:

var queryName = "Query";
if ( sEmail ) queryName += "Email";
if ( sBDay  ) queryName += "BDay";
if ( sPhone ) queryName += "Phone";

if ( queryName == "Query" ) queryName = "QueryNameOnly";

Outputs.SetProperty( queryName,"Y" );


But for this you would have to be a little more strict with your Parameter-Names not changing between BDay and BithDate and no Specialcase for ALL