X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=chapters%2F05.rst;h=ca11e0b614be7cc50eaff61a5990c3beeb6d1f14;hb=88629eb252422d4b562d6970ab16c48dc94bb435;hp=05d9c6949fab1e99238e71e10a18834399b58301;hpb=00e42bd8b271a01dd1a4a7c6b90c12bf5b52ae76;p=ibg.git diff --git a/chapters/05.rst b/chapters/05.rst index 05d9c69..ca11e0b 100644 --- a/chapters/05.rst +++ b/chapters/05.rst @@ -8,6 +8,7 @@ | *J was a joiner, and built up a house.* .. only:: html + .. image:: /images/picI.png :align: left @@ -260,7 +261,7 @@ This time, however, we've done it using one statement rather than two. It turns out that the sequence "``print`` a string which ends with a newline character, and then ``return true``" is so frequently needed that there's a special statement which does it all. That is, this single statement (where -you'll note that the string doesn't need to end in ``^``):: +you'll note that the string *doesn't* need to end in ``^``):: print_ret "It's such a lovely day -- much too nice to go inside."; @@ -466,7 +467,7 @@ The extended ``if`` statement:: if (bird in nest && nest in branch) deadflag = 2; should now be read as: "Test whether the ``bird`` is currently in (or on) -the ``nest``, and whether the ``nest`` is currently on (or in) the +the ``nest``, *and* whether the ``nest`` is currently on (or in) the ``branch``; if both parts are ``true``, set the value of ``deadflag`` to 2; otherwise, do nothing".