From: Jurrie L. <jur...@ya...> - 2005-02-21 18:21:56
|
So, what's "the right way" to test boolean fields in scripts? I find that if I only need to filter on a boolean field that "(seq %5 1)" works just fine. However, this does not work if I add additional conditions. Then there's the "(!(! %5))" notation that seems to work some of the time. And lastly there's "(test %5 (other stuff) 0)" scripts.txt does not show an operator to test if a boolean is set (oposite of "!"). The document indicates that booleans can be treated as integers, yet "(eq 1 %5)" doesn't appear to work. Am I missing something? thanks, jurrie __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com |