elegant code tip

Ivers, Doug E Doug_Ivers at lord.com
Mon Dec 30 19:57:11 EST 2002


to easily allow a boolean argument to be omitted, study this example:

function searchMyList myList,toFind,matchWholeFlag
  -- allow matchWholeFlag to be omitted (false)
  set the wholeMatches to (matchWholeFlag = true)
  return lineOffset(toFind,myList)
end function


-- D



More information about the Use-livecode mailing list