I have a function that converts the flowdata passed into it into a
variable. I can see that I get the flowdata correct in (that traceflow
call) but after it hits the if (flow) (which is trying to determine if
the flowdata is null) the value of flow gets cast into a boolean. What's
the best way to test if flowdata is null?

function flow2vector(flow)
{
traceflow(flow);

result = new java.util.Vector();

if (flow)
{
for (i = 0; i < flow.size(); i++)
{
try
{
v = flow.get(i).getFirstChild().getNodeValue();
// msg(i.toString()+": "+v);
result.add(v);
}
catch (e)
{
msg(e.toString())
};

}
}
return result;
}


--
rrawson
------------------------------------------------------------------------
rrawson's Profile: https://forums.netiq.com/member.php?userid=403
View this thread: https://forums.netiq.com/showthread.php?t=46131