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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to