On 2/18/12 10:32 PM, Geoff Canyon Rev wrote:
On Sat, Feb 18, 2012 at 9:57 PM, J. Landman Gay<jac...@hyperactivesw.com>
  wrote:

function whichOne var,fld1,fld2
-- from a handler by Tony Root
-- Handles a case where you need to return one value if your key is empty,
another if not.

  return (item offset(char 1 of (var = empty),"tf") of quote&  fld1&","&
fld2&  quote)
end whichOne


This seems unduly specialized.

Yeah. That's why I keep tweaking it for different things. I think the main draw is the "cool factor". I hardly ever use the field references, mostly I use the logic.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to