Posted by: Wisp
« on: November 18, 2017, 07:49:19 AM »[Requests]Done. SNPRINT can do negative values and there is an action equivalent.
[Requests]Done. SNPRINT can do negative values and there is an action equivalent.
Does SNPRINT have a corresponding OUTER_SNPRINT? If not, can we get one?
At the moment you can do this by simply putting the SNPRINT inside an OUTER_INNER_PATCH block.
I agree it would be really, really useful to have an easy-to-use method to derive the last n letters of a string, the way SNPRINT can derive the first n letters. I found a way to do it somewhere, the G3 forums I think. But it was complicated enough that I can't remember how and would have to search for it again. Something similar to SNPRINT would be grand.
Does SNPRINT have a corresponding OUTER_SNPRINT? If not, can we get one?
SNPRINT value variable stringWithVarsif value is a negative number it returns the last N characters whereas if value is positive it returns the first N characters?
SPRINT "author" "Jason"
SNPRINT "-3" "myvar" "1:%author%"
... assigns son to myvar.