is it true ?
J. Landman Gay
jacque at hyperactivesw.com
Wed May 18 15:08:46 EDT 2005
On 5/18/05 1:34 PM, jbv wrote:
>>Yes, it's true - quoted from Scott Raney on the MC list; conditional
>>evaluation ceases as soon as the result can be determined.
>
>
> OK. so in my example :
>
> put wordoffset(b,d) into w1
> if offset(a,d) > 0 and w1 > 0 then
>
> I'd better write :
>
> if offset(a,d) > 0 and wordoffset(b,d) > 0 then
>
> because wordoffset(b,d) will be evaluated only if the
> 1st part of the conditional statement is true... right ?
Right.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list