Millisecond Forums

Where are the new language constructs explained?

https://forums.millisecond.com/Topic11623.aspx

By Blackadder - 11/8/2013

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

By Dave - 11/8/2013

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.

By Blackadder - 11/8/2013

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 [;)].