IF else I do not work this out the wife is going to come in here and brain me. 3 am and still pounding away
I have an if statement that I have had as an if..then..else, now as an if..then
neither way is working
-----one way-----
ndata = ComboBox.GetItemData("FileType","",nil);
if ndata == "1"
then
ForMP3 ()
end
if ndata == "2"
then
ForWAV ()
end
if ndata == "3"
then
ForM3U ()
end
if ndata == "4"
then
ForPLS ()
end
------other way------
ndata = ComboBox.GetItemData("FileType","",nil);
if ndata == "1"
then
ForMP3 ()
else
if ndata == "2"
then
ForWAV ()
else
if ndata == "3"
then
ForM3U ()
else
if ndata == "4"
then
ForPLS ()
end
end
end
end
Both are only seeing the first function and not moving on to the other selections in the combobox.
Thanks

