Execute command?

Di
1

In Minecraft I need the execute command in 1.16 to detect whether there's a certain block below you.

Po

/ execute as @a at @s if block ~ ~ -1 ~ minecraft: gold_block run Command