Minecraft / execute data?

Al
1

I want to use / execute to test if a gate is open. How do you enter the data into the Command?

/ execute if data block 566 5 70 [facing = south, in_wall = false, open = true, powered = true]

That can't be right and does not work. But how then?

cl

I do not know the exact syntax either, let me give the data with / data get and enter it.