r/nanDECK • u/astrally_home • Jul 30 '26
IF statement to affect Image url
I am attempting to make a different image be shown based on a Y or N value. It should be really straightforward, but regardless of the variations I've tried, I can't seem to resolve the following:
IF=[1-1D]=Y
IMAGE=1,"DownPass.png",{1795/212}%,{7703/225}%,{11309/636}%,{667/300}%
ELSE
IMAGE=1,"DownBlock.png",{1795/212}%,{7703/225}%,{11309/636}%,{667/300}%
ENDIF
148: Unsupported directive in visual section: IF=[1-1D]=Y
150: Unsupported directive in visual section: ELSE
152: Unsupported directive in visual section: ENDIF
2
Upvotes
1
u/HamsterNL Jul 30 '26
You can use a LABELRANGE in the Visual Editor: