See
HERE for the full list of WALTER expressions. The & :
Code:
val1&val2 -- bitwise AND (if any bit is set in both val1 and val2)
..to date I have found more annoying than anything else, but that's just me.
Quote:
Originally Posted by sockmonkey72
and re: User Variables, if the problem were coords vs scalars, this should work:
Code:
set fxshown tcp_fxparms==0 0 w<350 0 1
set tcp.io fxshown[0]==1 [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]
But it doesn't...
|
Wrong brackets, do this:
Code:
set fxshown tcp_fxparms==0 0 w<350 0 1
set tcp.io fxshown{0}==1 [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]
Quote:
Originally Posted by sockmonkey72
Basically, various attempts to make WALTER a little less verbose and more easily maintainable are crashing against the rocks of evaluation. I don't know if these are bugs, or just limitations, but if they are bugs, I can move this over to the Bug Reports forum. Thank you.
|
Limitations, WALTER is extremely simple. But there are still lots of clean up things you
can work with to get that done:
- You don't need to include entries in coordinate lists past the ones that have values. So, for example, if the four edge attachment numbers are zero:
Code:
set thing [5 5 20 20 0 0 0 0]
is the same as
set thing [5 5 20 20]
- I don't use the edge attachment numbers at all any more. IIRC never. I find the WALTER comes out neater and easier to debug if I do all my resizing myself, YMMV.
- \ backslash to break up long lines.
- If you're rewriting the same thing over and over, maybe turn it into a macro, even if its just one line.
- Double declare things. For example, I can't remember who (Bernstraw?) but someone used to set up themes like this:
Code:
set thing1 [1 2 3 4]
set thing2 [21 22 23 24]
set thing3 [31 32 33 34]
; w>200
set thing1 w>200 [5 6 7 8] .
set thing2 w>200 [25 26 27 28] .
set thing3 w>200 [35 36 37 38] .
there's lots of little things like that to try, see what floats your boat.