Is there an equivalent ++ operator in expression language?

Discussions about the LSPS expression language.
Forum rules
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
cbmeeks
 
Posts: 59
Joined: Wed Aug 07, 2013 11:28 pm

Is there an equivalent ++ operator in expression language?

Fri Jul 17, 2015 5:30 pm

In Java/C#/C/C++ I can do the following:

Code: Select all
val++;


Which would increment the variable "val" by one. You can also decrement with "val--".

Is there a way to do that in expression language or do I have to:

Code: Select all
val := val + 1;


Thanks

Oliver Carl
 
Posts: 7
Joined: Wed Oct 22, 2014 2:51 pm

Re: Is there an equivalent ++ operator in expression languag

Fri Jul 17, 2015 5:55 pm

Hi cbmeeks
Sorry, I can only give you a preliminary answer:
As far as I can tell, this is currently not possible, unfortunately.
I will ask my colleagues to post a more elaborated answer as soon as possible.
BR, Oliver

cbmeeks
 
Posts: 59
Joined: Wed Aug 07, 2013 11:28 pm

Re: Is there an equivalent ++ operator in expression languag

Fri Jul 17, 2015 5:59 pm

Thanks for looking into this.

Milos Volauf
 
Posts: 10
Joined: Mon Feb 27, 2012 2:49 pm

Re: Is there an equivalent ++ operator in expression languag

Tue Jun 27, 2017 8:35 am

Since LSPS 3.1 the following operators are available:
Code: Select all
++count
count++
--count
count--

See also https://docs.whitestein.com/lsps/3_1/ex ... ators.html

Return to Expression language

Who is online

Users browsing this forum: No registered users and 1 guest