Hi Chris,
chris25 wrote:
...
set the hilite of btn "Blink" to not the hilite of btn "Blink"
###another thing that has bewildered me is the often seen use of this syntax, in other words cancel the hilite of "blink" right?
...
not really
This will set a BOOLEan value (which can be TRUE or FALSE = just like the hilite of a checkbox or radio button) to the OPPOSITE of its value!
Maybe some parens will make it clearer:
...
set (the hilite of btn "Blink") to NOT (the hilite of btn "Blink")
...
Now replace the values in parens and see if you can guess the result of that line with the different values.
Actually this is some kind of cool "ON/OFF" switch, which always works without looking
...
## Not hilited yet, so turn it on:
set (FALSE) to NOT (FALSE)
...
## Hilited, so switch it OFF
set (TRUE) to NOT (TRUE)
...
You know what:
NOT (FALSE)
and
NOT (TRUE)
will mean, right?
Best
Klaus
Edit:
Find more "Fun with Boole" in my last posting here:
http://forums.runrev.com/phpBB2/viewtop ... 69&t=17552