Search found 1 match

by guenter.g
Tue Apr 14, 2015 4:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Empty parameter in function
Replies: 6
Views: 4736

Re: Empty parameter in function

You can use the functions paramcount() and param() (see in dictionary)

Code: Select all

function play1 item1, item2, item3, item4, item5, item6
   repeat with tParam = 1 to paramcount()
      if param(tParam) is empty then
         answer ("item" & tParam && "is empty!")
      end if
   end repeat
end play1