hilite button

Mark Smith lists at futilism.com
Tue Nov 11 22:03:05 EST 2008


Larry, you've got caught by the 'and' vs. '&' trap...

'and' is a logical operator - so "return and 0" evaluates to false,  
'&' concatenates.

This has also caused me severe hair-loss at times.

Best,

Mark

On 12 Nov 2008, at 02:43, Larry Watts wrote:

> Sorry, this is the kind of thing that drives me CRAZY!
>
> I have a checkbox, check1.  I put the following script into a button:
>
> if the hilite of button check1 is true then
> put return & 1 after field myPrefs
> else
> put return and 0 after field myPrefs
> end if
>
> If the button is checked, it does put return and 1 on the next  
> line.  But if the button is not checked, it puts no return and puts  
> "false" on the same line.
> I don't get it!  I tried a million (slight exaggeration) ways to do  
> it otherwise but cannot get it to work.  Any clue?
>
> Thanks!
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list