View Single Post
Old 05-13-2022, 11:53 PM   #1
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,935
Default WALTER expression "bugs"

Here is a rudimentary theme & RPP to demonstrate some issues with expression evaluation in WALTER.

Here's the relevant stuff from the rtconfig.txt:

Code:
clear tcp.*
set tcp.size [406 100 254 0]

front tcp.fxparm tcp.io

; this works, but the syntax is one coord-list too long for the intention
set tcp.io tcp_fxparms>0 w<350 [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]

Layout "a - Standard"
  set tcp.label  .
EndLayout

Layout "b - AND"
	; this doesn't work, the & is apparently ignored
	; tcp_fxparms&w<350 is similarly incorrect
	set tcp.io tcp_fxparms>0&w<350 [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]
EndLayout

Layout "c - UserVar"
	; user variables are apparently always evaluated as 0
	set fxshown tcp_fxparms==0 0 w<350 0 1
	set tcp.io fxshown==1 [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]
EndLayout

Layout "d - Combo"
	; just trying, of course it doesn't work
	set wless w<350
	set tcp.io tcp_fxparms>0&wless [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]
EndLayout

Layout "e - Combo2"
	; just trying, of course it doesn't work
	set wcombo tcp_fxparms>0&w<350
	set tcp.io wcombo==1 [50 20 20 20 0 0 0 0] [10 20 20 20 0 0 0 0]
EndLayout
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.
__________________
ReaPack Repository: right-click and copy index URL
sockmonkey72 is offline   Reply With Quote