Hallo,
Übrigens hat @Tabellenkalk schon recht, das ist alles abgeguckt von LISP, der Mutter aller Programmiersprachen 😀 dort ist
ifein special operator, der die Form(if condition then-form [else-form])hat. Der Rückgabewert ist hier der Rückgabewert der Then-Form bzw der Else-Form, je nach Ergebnis voncondition. Gibt es keine Else-Form aber die condition gibtfalsezurück, wirdnilzurück gegeben.
ich weiß jetzt nicht, was älter ist, aber mein erster Kontakt mit do sah so aus:
do label var = expr1, expr2, expr3
statements
label continue
https://web.stanford.edu/class/me200c/tutorial_77/09_loops.html
Gruß
Jürgen