Page 2 of 2

Posted: Wed Jun 23, 2004 10:13 pm
by Froggerprogger
:) , or:

If a > 1 ;Then
DoIt()
Else
DoNothing()
Endif

I don't request a 'then', it was getting on my nerves already in QBasic and I was delighted not to have to use it in PB. But I don't care if it would be optional, so I'm not against it :wink:

Posted: Wed Jun 23, 2004 10:44 pm
by fweil
Froggerprogger,

You made me laugh with ;

I did not thought it was also part of PB language ... but you are right somewhere.

lol

Posted: Thu Jun 24, 2004 12:56 pm
by Dummy
If you add a Then, please also add a Goto and GoSub/Call

GoTo:

Good old QuickBasic:

Code: Select all

If a=2 GoTo GoToMark
That:

Code: Select all

[claculate the Condition]
[If True jump to GoToMark]
...
GoToMark:
[TheCode]
...
would just be a bit quicker(and smaller) as:

Code: Select all

[claculate the Condition]
[If True jump to IfCode]
[jump to EndOfIfCode] ; only executed, if False
IfCode:
[jump to GoToMark]
EndOfIfCode:
...
GoToMark:
[TheCode]
...
And the GoSub(can also be named Call for use with Procedures) at the same way.

I hope at least Fred or Fr34k has understood me!(sorry for my bad English!)
If not I can explain it again in German(As far as I know Fr34k speaks German. If not, please correct me!)

Posted: Thu Jun 24, 2004 2:29 pm
by Kale
i dont know why but for some reason i hate the 'then' keyword! it just looks to basic'y to me.