Simple script does not work, going bananas
Posted: 17 Mar 2014 13:09
Hi,
I have this simple script in a flow :
if (call_type ==1)
{vtelnr = incoming_number
}
else
{vtelnr =called_number
}
and it works, but then I have a similar script that I cannot get to work
if (call_type ==1)
{vinut = "telefonsamtal till"
}
else
{vinut ="telefonsamtal från"
}
But I cannot catch the value. Either I get the last value "telefonsamtal från" Even if it is a incoming call or I get no value or a flow error. I have been trying for a long time to get this simple if.. then.. else.. to work, and it is driving me nuts, so shamefully I am humbly asking for help. I have tried with stating the variable first, I have tried setValue, do I need add list or something else? I should mention that I have separated a long flow into four flows (to be able to reuse some of the flow's for similar purposes).
Help please with this stupid question?
I have this simple script in a flow :
if (call_type ==1)
{vtelnr = incoming_number
}
else
{vtelnr =called_number
}
and it works, but then I have a similar script that I cannot get to work
if (call_type ==1)
{vinut = "telefonsamtal till"
}
else
{vinut ="telefonsamtal från"
}
But I cannot catch the value. Either I get the last value "telefonsamtal från" Even if it is a incoming call or I get no value or a flow error. I have been trying for a long time to get this simple if.. then.. else.. to work, and it is driving me nuts, so shamefully I am humbly asking for help. I have tried with stating the variable first, I have tried setValue, do I need add list or something else? I should mention that I have separated a long flow into four flows (to be able to reuse some of the flow's for similar purposes).
Help please with this stupid question?