[Help] help with adding animations to wallpapers depending on home screen

i am trying to add fade transitions to 3 different wallpapers for when i scroll to different home pages, but none are showing up and i don’t see any problems in the code i entered to make the toggles work

am i doing anything wrong? and is there a much simpler workaround that i don’t know about

if it is a code related problem that i’m doing wrong, it is likely that i am not familiar with kustom formulas as i am only familiar to roblox lua code

operating system: hyperos 3.0.5.0

device: xiaomi poco x7 pro

launcher: poco launcher

klwp version: 3.81

Your main issue is a syntax error: you have an extra closing parenthesis ) at the very end of your formula, and you need to group your OR conditions.

Try this:

$if((si(screen)=3 | si(screen)=4) & gv(ls2)=0 & gv(ls3)=0, 0, 1)$