/execute questions

So, I got this genius idea to make a crafting table with custom recipes work anywhere, (If you just have /testforblocks running, it would only work at 1 location) using /execute
.
My command would look like this:
/execute @a ~ ~ ~ testforblocks ~1 ~ ~ ~1 ~ ~ [Dispenser table coordinates]
But how would I tell it to
/execute @a ~ ~ ~ clone [Dispenser table Coordinates] ~1 ~ ~ ~1 ~ ~
but only to the people that match the /testforblocks?
Best Answer
Set up a dummy objective, which we'll make store whether or not a player successfully tested for the dispenser:
/scoreboard objectives add FoundDispenser dummy
When a new player joins (or just on a clock) make the new player (or everyone) set their SuccessCount
to store in their dummy score (FoundDispenser in this example), and nudge the dummy score off of Null:
execute @a ~ ~ ~ stats entity @p set SuccessCount @p FoundDispenser
scoreboard players add @a FoundDispenser 0
Run the execute testforblocks command, then run the execute clone command straight afterwards:
execute @a ~ ~ ~ testforblocks ~1 ~ ~ ~1 ~ ~ [Template Coordinates]
execute @a[score_FoundDispenser_min=1] ~ ~ ~ clone [Template Coordinates] ~1 ~ ~ ~1 ~ ~
Pictures about "/execute questions"



What is an execution interview?
This interview tests your ability to prioritize, identify the correct tradeoffs and set your team up for success. As a PM you need to create logical frameworks to make decisions against. There are 3 types of questions that are asked in execution interviews: Trade off between A and B.What is product management execution?
During the execution stage, a product team works on the product itself. They build a new product or add new features to an existing one. Main phases of this stage are product development, internal and external testing, and the application of feedback results.How to approach a product execution question (w/ Airbnb PM)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Sora Shimazaki, Anna Shvets, Yan Krukov, Andrea Piacquadio