@ifsel:type=*.(png|jpg) doesn't work as expected

@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=*.pngdirs OR type=*.png
@ifsel:files,type=*.(png|jpg)files AND type=*.png

The function of comma separation is different in the above conditions.

What’s the full thing you’re running?

I do some test,

@ifsel:type=*.(png|jpg)
@output:111
@ifsel:else
@output:222

when select none, it output 111, this is incorrect.

Try with a command. The @output modifier has some quirks which might complicate things (although we fixed the ones we know of recently).

@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

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.