Test-keyword for single-line if-constructs

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Test-keyword for single-line if-constructs

Post by uwekel »

I like mine a bit more ;-)
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Test-keyword for single-line if-constructs

Post by Little John »

uwekel wrote:I like mine a bit more ;-)
No problem.
Everyone likes his version a bit more than the other versions. :-)
juror
Enthusiast
Enthusiast
Posts: 228
Joined: Mon Jul 09, 2007 4:47 pm
Location: Courthouse

Re: Test-keyword for single-line if-constructs

Post by juror »

uwekel wrote:I could imagine, for a one-liner, to use the Then keyword like this:

Code: Select all

If a=1 Then b=3 Else c=5
And it is Basic-like :-)
You opened a 6 year old topic for this?
:)
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Test-keyword for single-line if-constructs

Post by Josh »

uwekel wrote:I could imagine, for a one-liner, to use the Then keyword like this:

Code: Select all

If a=1 Then b=3 Else c=5
And it is Basic-like :-)
Since a long time, i wish a single line if like:

Code: Select all

If a=1 Then b=3
but uwekels extension is better ^^
sorry for my bad english
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Test-keyword for single-line if-constructs

Post by uwekel »

juror wrote:You opened a 6 year old topic for this?:)
Sorry for using the search before posting a new topic :P
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Post Reply