Article 28 [source]

Spanish Criminal Code
English translation

Perpetrators are those who commit the act alone, jointly, or through another person whom they use as an instrument.

The following will also be considered perpetrators:

a) Those who directly induce another or others to commit it.

b) Those who cooperate in its commission with an act without which it would not have been carried out.