Call to all you one-liners !

Jim Ault jimaultwins at yahoo.com
Sat Jun 26 14:10:41 CDT 2010


The sum() function error could do this,
but it will also work with real numbers, not just integers.

On Jun 26, 2010, at 10:36 AM, J. Landman Gay wrote:

> J. Landman Gay wrote:
>> Mark Schonewille wrote:
>>> Hi Francis,
>>>
>>> put (fld 1 is a color and the number of items of fld 1 is 3) into  
>>> myIsRGB
>> As mentioned, this is okay for a quick check but isn't very  
>> reliable in general. "Is a color" seems to return true for any  
>> comma-delimited list of integers, regardless of whether the numbers  
>> are within a valid color range.
>
> I meant to add: it could be a quick way to check for any valid list  
> of item-delimited integers though. It's sort of a non-intuitive  
> approach, but faster than iterating through the list looking for non- 
> integer entries.
>

Jim Ault
Las Vegas






More information about the use-livecode mailing list