Log in
Log into community
Join the Webstudio community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Active
Updated 6 days ago
0
Follow
Performing mathematical operations in the expression editor
Performing mathematical operations in the expression editor
Active
0
Follow
R
Ronald from 360Creators
6 days ago
Β·
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.
Attachment
B
R
4 comments
Share
Open in Discord
B
Bogdan
6 days ago
Yeah, there is old trick to cast string to number. Put plus before string like
+"123"
R
Ronald from 360Creators
6 days ago
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
6 days ago
Ah got it, then just wrap (Artikel.data.results[0]+1) into parens
R
Ronald from 360Creators
6 days ago
Awesome!! π€© Thank you so much π
Add a reply
Sign up and join the conversation on Discord
Join on Discord