Search code examples
blockchainethereumsoliditysmartcontracts

Solidity Point of _ statements


I'm looking at a simple example for accepting payments in Solidity, I see they've set up a modifier which only allows the owner to to executue certain functions.

modifier onlyOwner {
    if(msg.sender != owner) throw;
    _;
}  

I'm confused on the purpose of the _ statement. What exactly is the purpose of this?


Solution

  • Looks like the _ is just a place holder for where the function should be executed