Ignore data value for execute ... detect

Ignore data value for execute ... detect - Gold bitcoin coin on background of growth chart

Is there any way to avoid specifying the data value when using the detect syntax of execute (execute ... detect ~ ~ ~ ...)?

I want to execute on an item and detect if there is stone under it and an anvil at ~+1 ~ ~, but the problem is that an anvil facing towards +x has a different data value than one facing towards -x etc. Do you know any way in Minecraft Vanilla to ignore this data value or put there universal one? (I can't just stop command because i need <command> that is after <data value>)

At the moment command looks like that:

execute @e[type=Item] ~ ~ ~ detect ~ ~-1 ~ minecraft:stone 0 execute @e[type=Item] ~ ~ ~ detect ~1 ~ ~ minecraft:anvil <data value> say hi





Pictures about "Ignore data value for execute ... detect"

Ignore data value for execute ... detect - Graph of the Movement of the Value of Bitcoin
Ignore data value for execute ... detect - Vector image of red Covid virus against decreasing line graph on blue background
Ignore data value for execute ... detect - Male employer gesticulating and explaining idea in light office





Removing NAs in R dataframes




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ivan Babydov, Alesia Kozik, Monstera, Andrea Piacquadio