Quote
Originally posted by mrxak:
Actually, Mantaray is thinking of set expressions, which work slightly different. Only the "!" is in the set expressions, and works a little differently.
No, ^ is also in set expressions.
Quote
**Okay, basically, you have four "tools" to do things other than the regular b23 in the test fields.
| means "or". It can be used so that the engine can do something if either of two things are true (or not true).
b1 | b2 in the Availibility field for say, the oütf resource means that you can see the outfit if either b1 or b2 is set.
& means "and". It can be used so that the engine can do something if both things are true (or not true).
b1 & b2 in the in the Availibility field for the oütf resource means that you can see the outfit if both b1 and b2 is set.
! means "not". It can be used so that the engine can do something if a bit is false.
!b1 in the in the Availibility field for the oütf resource means that you can see the outfit if b1 is cleared.
( )s are used to group things. Nova gets confused by "b1 | b2 & b3". It could mean either (b1 | b2) & b3 or b1 | (b2 & b3). Putting in the parentheses where I showed them means completely different things. (edit)Um, that doesn't sound gramatically right, but whatever.(/edit)**
Remember, if you have an expression dealing with 3 or more bits, you HAVE to use parenthesies. Basically, if you have b1 & b2 & b3, even though it's perfectly clear and the same meaning whether it's (b1 & b2) & b3 or it's b1 & (b2 & b3), you still have to use parenthesies. The bible makes this very clear. I have no wish to test the validity of this statement, either
Quote
For set expressions, you do not need &, |, or ( )s. "!" is used to clear bits (in the form of !b1), and R(<op1> <op2> ) is used to randomize between two set opperations (in the form of R(b1 b2)).
Yeah, that's right. Although there is the "^" operator (in the form of ^b1) which toggles the bit. Basically, if b1 is set, then ^b1 will clear b1, and if b1 is cleared, then ^b1 will set b1. And R(<op1> <op2> ) has a 50% chance of doing either operation.
------------------
Kevin Ballard
(url="http://"mailto:kevin@sb.org")mailto:kevin@sb.org(/url)kevin@sb.org