if not(cond) then Jump Label1 cmd1 cmd2 Jump Label2 * Label1: cmd3 cmd4 * Label2: That's all folks
I think SMI's RPL has this type of requirement If you mean the IF knows when it ENDS because it hits a JUMP that's not a very nice solution.... -----Original Message----- From: Brian Leach <[email protected]> To: U2 Users List <[email protected]> Sent: Sun, Dec 9, 2012 10:06 am Subject: Re: [U2] Another job ad written by people who have no clue since I often find myself working in mvBasic, Delphi, C#, javascript and sometimes VB.NET at the same time it is the multiline end and else syntax that is the one that trips me. Basic If cond Then blah End Else blah End Delphi If cond Then Begin blah; End Else Begin blah; End; VB.NET If cond Then blah Else blah End If .. So sometimes the C# and javascript braces are welcome! But I would add that good code is beautiful irrespective of the syntactic vagaries of the chosen language - except for TSQL of course which is always horrible. <grin> Brian Sent from my iPad On 9 Dec 2012, at 17:38, Wjhonson <[email protected]> wrote: > For a single line. > I don't understand how an IF would know, for multiple lines, where it's supposed to end. > With a semi colon? Horrible. > Computer languages should be written for humans to read, not machines. > > > > > > > > -----Original Message----- > From: u2ug <[email protected]> > To: louiebergsagel <[email protected]>; U2 Users List <[email protected]> > Sent: Sun, Dec 9, 2012 9:32 am > Subject: Re: [U2] Another job ad written by people who have no clue > > > mv basic doesn't require an END to an IF either > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Louie > Bergsagel > Sent: Sunday, December 09, 2012 3:21 AM > To: U2 Users List > Subject: Re: [U2] Another job ad written by people who have no clue > > I'm in my current job because I was willing to learn Python at work and > on my own dime. I took a beginner's course in Python at the University > of Washington because I didn't know much besides Prime Information, > Henco's Info, Structure/4, UniVerse, UniData and MITS. It was fun to > learn Python as the syntax was so similar to Pick basic. Program > controls is through indentation, which we usually use anyway. They even > go Pick one better: > an IF statement doesn't need an END. They all require one, right, so > why > not assume it? I love that thinking. Learn some Python. You'll be > glad > you did. > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
