The easily readable structure of having an if keyword which controls execution of a following block of code is so prevalent in programming that it seems to just be part of it.
However, programming started out with machine code that was far away from the easy to understand
if condition
do thing
What was the first time a programmer was able to use this simple and intuitive way of executing code based on a condition?
This excludes IF...GOTO statements, as that - in the sense of this question - only allows to execute a GOTO statement, opposed to arbitrary code. Also condition and code to execute are split up there and not together anymore. This is more about the "usability for programmers" perspective than about the technical ability to support this feature.
As user Raffzahn mentioned, this can be called "the first (block) structured language".
if(condition) begin code; endis exactly theif(not condition) goto end_of_block; code; end_of_block:so this readability could even be achieved in assembler using appropriate macros. – lvd Apr 18 '19 at 20:10ifstatement that controls a" single line" of code versus a "block" of code (a distinction that is a bit artificial), any functional programming language will allow blocks of code. Simply definemy_functionas the block of code, then sayif condition then my_function(). – Acccumulation Apr 18 '19 at 21:48if condition then my_function()is as acceptable asif condition then a+=3;.if condition gotois not acceptable because it directs you somewhere else. – R. Schmitz Apr 19 '19 at 08:57IF ... THEN (GOTO) xconstruct of the C64 Basicv2 well and I did not find it very important. – peterh Apr 21 '19 at 00:48