Math problem
J. Landman Gay
jacque at hyperactivesw.com
Sun Feb 19 00:12:34 EST 2012
On 2/18/12 10:32 PM, Geoff Canyon Rev wrote:
> On Sat, Feb 18, 2012 at 9:57 PM, J. Landman Gay<jacque at 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 | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list