bytim
June 7, 2026, 2:14pm
1
@ifselifsel :type=*.(png|jpg)
when select none, it is true. should be false.
@ifsel :files,type=*.(png|jpg)
This seems achieve the desired result. But it seems like something is wrong with @disablenosel ?
@disablenosel:dirs,type=*.png → dirs OR type=*.png
@ifsel:files,type=*.(png|jpg) → files AND type=*.png
The function of comma separation is different in the above conditions.
Leo
June 7, 2026, 4:16pm
2
What’s the full thing you’re running?
bytim
June 7, 2026, 4:19pm
3
I do some test,
@ifsel:type=*.(png|jpg)
@output:111
@ifsel:else
@output:222
when select none, it output 111, this is incorrect.
Leo
June 7, 2026, 4:22pm
4
Try with a command. The @output modifier has some quirks which might complicate things (although we fixed the ones we know of recently).
bytim
June 7, 2026, 4:26pm
5
@ifsel:type=*.(png|jpg)
notepad.exe
@ifsel:else
cmd.exe
select a png file, will run notepad.exe
select none, will still run notepad.exe → this is not correct. should run cmd.exe.
select a zip file, will run cmd.exe
Leo
June 8, 2026, 6:41pm
6
Agreed, that isn't what it's meant to do.
I've done a fix for that, but am going to wait until 13.24.1 to release it, in case it has unexpected side effects.