Empty parameter in function
Posted: Fri Apr 03, 2015 9:58 pm
I have this function:
Very often I won't call all 6 parameters... So I need to check somehow if some 'item' variables are empty or not.
I tried with this if statemet to check if it's empty, but it's not working... Any ides?
Code: Select all
function play item1, item2, item3, item4, item5, item6
repeat with numberVar = 1 to 6
put ("item" & numberVar) into theNameOfHolder
if theNameOfHolder is empty then
answer ("Variable " & theNameOfHolder & " is empty!")
end if
end repeat
end play
I tried with this if statemet to check if it's empty, but it's not working... Any ides?