A two-way selection statement specifies a block of code to execute when the condition is true and another block of code to execute when the condition is false.