Log in
Log into community
Join the Webstudio community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated last month
0
Follow
Performing mathematical operations in the expression editor
Performing mathematical operations in the expression editor
Inactive
0
Follow
At a glance
R
Ronald from 360Creators
last month
Is it possible to do some mathematics in the expression editor? +1 adds the number 1 at the end instead of turning 485 into 486.
B
R
4 comments
Share
B
Bogdan
last month
Yeah, there is old trick to cast string to number. Put plus before string like
+"123"
R
Ronald from 360Creators
last month
Ohh I'm sorry, I asked this poorly. I meant:
/blog/485
turns into
/blog/4851
when I say +1 currently in the expression editor, but I would like
/blog/486
B
Bogdan
last month
Ah got it, then just wrap (Artikel.data.results[0]+1) into parens
R
Ronald from 360Creators
last month
Awesome!! π€© Thank you so much π
Add a reply
Sign up and join the conversation on Discord