Page 2 of 2

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

Posted: Wed Mar 04, 2015 1:18 pm
by uwekel
I like mine a bit more ;-)

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

Posted: Wed Mar 04, 2015 1:31 pm
by Little John
uwekel wrote:I like mine a bit more ;-)
No problem.
Everyone likes his version a bit more than the other versions. :-)

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

Posted: Wed Mar 04, 2015 5:03 pm
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?
:)

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

Posted: Wed Mar 04, 2015 7:10 pm
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 ^^

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

Posted: Wed Mar 04, 2015 7:15 pm
by uwekel
juror wrote:You opened a 6 year old topic for this?:)
Sorry for using the search before posting a new topic :P