Multireplace calculated numbers?

I was slightly disappointed I couldn’t use

*set dayn "@{(dayN < 7) (${dayN}+1) | 1}"

when writing that day-night system in this post.

(The error being “Not a number: (1 + 1)” .)

Best I managed was

*temp nextDay (dayN + 1)
*set dayn "@{(dayN < 7) ${nextDay} | 1}"

Is there an alternative syntax that allows you to get by without that extra variable?

it might (might!) be

${dayN +1}

but i’m not certain

1 Like

It actually is.
Thank you.

1 Like