From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.228.6 with SMTP id e6mr47612851yhq.34.1417269805436; Sat, 29 Nov 2014 06:03:25 -0800 (PST) X-Received: by 10.140.19.110 with SMTP id 101mr14273qgg.9.1417269805421; Sat, 29 Nov 2014 06:03:25 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!s7no2879250qap.1!news-out.google.com!m4ni576qag.1!nntp.google.com!w8no3373034qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 29 Nov 2014 06:03:25 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:2c20:8450:d51f:71b7:783f:155b; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:120b:2c20:8450:d51f:71b7:783f:155b References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Help with an errant 'IF' statement please. From: gautier_niouzes@hotmail.com Injection-Date: Sat, 29 Nov 2014 14:03:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:23780 Date: 2014-11-29T06:03:25-08:00 List-Id: Le samedi 29 novembre 2014 14:28:40 UTC+1, Austin Obyrne a =E9crit=A0: > This is an IF statement that just won't work and the same has happened in= the past on other occasions in this very same program alone while working = ok in other parts of the same program further on as well as being ok in oth= er loops.=20 Since Total doesn't change during the loop, the condition is either always = True or always False. The IF works as always, but perhaps not in the way yo= u expect... I guess you copy-pasted the IF statement from elsewhere, but th= en you should have "Line_Number" instead of "Total" to have a stop every 12= output lines. _________________________=20 Gautier's Ada programming=20 http://gautiersblog.blogspot.com/search/label/Ada=20 NB: follow the above link for a valid e-mail address=20