Where are the new language constructs explained?


Author
Message
Blackadder
Blackadder
Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)
Group: Forum Members
Posts: 280, Visits: 147

What a pity, I was hoping for the ++ operator to be implemented, so you could do


++values.myvalue


or 


values.myvalue++


to commit a pre-/post-access increment.

Regardless, thanks very much for the information. I reckon, a help update might be what makes v4.0.4.0, then [;)].


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

Possible the docs are lagging behind. Not much to these new constructs, though:


#1: if - else if - else


if (boolean) {expression; ...} else if (boolean) {expression; ...} else if (boolean) {expression; ...} else {expression;...}


#2: Increment / decrement operators


values.myvalue += amount


to increment myvalue by amount. Replaces values.myvalue = values.myvalue + amount.


values.myvalue -= amount


to decrement by amount.


Blackadder
Blackadder
Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)
Group: Forum Members
Posts: 280, Visits: 147

Dear community,


the "What's new" page for Inquisit 4 (http://www.millisecond.com/products/Inquisit4/whatsnew.aspx) states that we can now use "New language constructs such as else if and increment operators" in the new version. Where are these described? I seem to not be able to find anything related in the help docs.


Regards, Malte


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search